[Mono-list] mono auto configuration.
mono newby
mono at corpcomp.co.nz
Thu Apr 11 14:30:57 UTC 2013
Hi Everyone
I'm not entirely new to mono, but I am new to 3.0 and auto configuration.
Never used auto configuration in the previous version I ran.
Anyways, I have 3.0 running on my Debian squeeze server with auto
configuration in effect, but it doesn't pick up the index.aspx or
default.aspx files by default when you navigate to the root of the domain.
I get a Forbidden error. You don't have permission to access / on this
server.
However, if I enter /index.aspx the site appears as expected.
So here is what I have done.
Installed mono-complete from Debian repository
Compiled and installed libgdiplus mono xsp mod_mono from git in that order
without errors.
Then did a2enmod mod_mono_auto to enable the mono module in apache2.
But when I added Include /etc/apache2/mod_mono.conf to the apache2.conf
nothing seems to work. I get an error message when I navigate to the root
of the domain. Sorry I can't recall the error.
So my mod_mono_auto.conf looks like this.
MonoAutoApplication enabled
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 .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
And obviously my mod_mono_auto.load looks like this
LoadModule mono_module /usr/lib/apache2/modules/mod_mono.so
And the mode_mono.conf looks like this
# mod_mono.conf
# Achtung! This file may be overwritten
# Use 'include mod_mono.conf' from other configuration file
# to load mod_mono module.
<IfModule !mod_mono.c>
LoadModule mono_module /usr/lib/apache2/modules/mod_mono.so
</IfModule>
<IfModule mod_headers.c>
Header set X-Powered-By "Mono"
</IfModule>
MonoServerPath /usr/bin/mod-mono-server4
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 .vb
AddType application/x-asp-net .master
AddType application/x-asp-net .sitemap
AddType application/x-asp-net .resources
AddType application/x-asp-net .skin
AddType application/x-asp-net .browser
AddType application/x-asp-net .webinfo
AddType application/x-asp-net .resx
AddType application/x-asp-net .licx
AddType application/x-asp-net .csproj
AddType application/x-asp-net .vbproj
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
If someone could point out the error of my ways with this configuration I
will rectify it and be on my way with yet another successful installation
of mod_mono in service.
Many thanks in advance.
Fred
More information about the Mono-list
mailing list