mod_mono: Mono and Apache together
Requirements:
- Apache version 2.0 or higher;
- Vesrsione Mono 2.0 or higher;
- XSP Server version 2.0;
- mod_mono Apache module;
Nothing prohibits the use of different versions of software required, but not if it ensures operation.
I state that I am sorry that the instructions given here may not coincide with those specific for your distribution, but how well you understand I can not simulate the installation for any Linux Distro
.
In this tutorial I will explain how to interface Apache with Mono, so as to directly call. NET applications by Apache and not having to switch between ports other than 80.
If you have not installed and Mono XSP Server on your PC, I refer you to the following articles:
Mono on the web: install XSP server
Installation
First download the module to be installed, the link is as follows:
http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.0.tar.bz2
At this point we perform the following commands:
bzip2-d mod_mono-2.0.tar.bz2
tar-xf mod_mono-2.0.tar
We enter the mod_mono-2.0 directory and launch it created the usual three commands:
. / Configure
make
sudo make install
The launch of the first command you may receive a notice regarding the lack of axps2 on the system, then you need to install. As for ubuntu just run the following command:
sudo apt-get install apache2-prefork-dev
. and then rerun. / configure.
At this point you have installed mod_mono, let's configure applications so that they run through apache.
We look for the folder where you installed apache and check if the file was created mod_mono.conf.
If there creiamolo, and if it already exists svuotiamolo. Put the following directives:
<IfModule !mod_mono.c>
LoadModule mono_module / usr/lib/apache2/modules/mod_mono.so
AddType application / x-asp-net. Aspx
AddType application / x-asp-net. Asmx
AddType application / x-asp-net. Ashx
AddType application / x-asp-net. Asax
AddType application / x-asp-net. Ascx
AddType application / x-asp-net. Soap
AddType application / x-asp-net. Rem
AddType application / x-asp-net. Axd
AddType application / x-asp-net. Cs
AddType application / x-asp-net. Config
AddType application / x-asp-net. Config
AddType application / x-asp-net. Dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
</ IfModule>
Remember that this file must be loaded when you start apache,, so in the case of ubuntu we should create the following location:
/ Etc/apache2/conf.d/mod_mono.conf
In other cases, just enter the general configuration file apache (httpd.conf or apache2.conf for example) the following statement:
Includes [path of the file system resides] / mod_mono.conf











Recent Comments