I have Mono 3.0.6 up and running on a CentOS 6/Apache 2 setup. I have published an ASP.NET 4.5/MVC4 website on the server. However, when I try to reach the website I get a status code 503 (Service Temporarily Unavailable), and in the logs I can see that Mono is not even trying to catch the request (as it should try to route me from / to /Home/):
[Tue Mar 26 14:18:38 2013] [error] [client 192.168.40.1] Directory index forbidden by Options directive: /var/www/mvcgui/wwwroot/
I'm using the default Apache configuration, and copied mod_mono.conf to /etc/httpd/conf.d/00-mod_mono.conf. My VHOST is in the same directory as 01-mvcgui.conf (to make sure it's loaded after Mono). This is my vhost:
<VirtualHost _default_:80> ServerAdmin email@example.com DocumentRoot /var/www/mvcgui/wwwroot ServerName 192.168.40.132 ErrorLog /var/www/mvcgui/error.log CustomLog /var/www/mvcgui/requests.log combined ## Mono-specific configuration ## MonoServerPath mvcgui "/opt/mono/bin/mod-mono-server4" MonoDebug mvcgui true MonoSetEnv mvcgui MONO_IOMAP=all MonoApplications mvcgui "/:/var/www/mvcgui/wwwroot" ## End Mono-specific configuration <Location /> MonoSetServerAlias mvcgui SetHandler mono </Location> </VirtualHost>
I suspect the requests are not being passed on to Mono. How could I make sure it's the case?