[Mono-aspnet-list] How to set a mod mono asp.net application that isn't at the document root?

Andrus kobruleht2 at hot.ee
Wed Jan 21 18:50:50 UTC 2015


I posted this issue some tome ago in


This contains also a fix: you can comment offending line in System.Web 
source code.


From: uneatenbreakfast
Sent: Friday, January 16, 2015 6:00 AM
To: mono-aspnet-list at lists.ximian.com
Subject: [Mono-aspnet-list] How to set a mod mono asp.net application that 
isn't at the document root?


I've got mod_mono and mono installed on my Centos webserver, and I'm trying
to configure the server so when I go to my website's url eg:
www.domain.com/Projects/projectone it would run my asp.net application.
These are the settings I'm currently using in the httpd.conf file:

*MonoServerPath /opt/mono/bin/mod-mono-server4
Alias /Projects/projectone

<location /Projects/projectone>
   SetHandler mono

However I just get the error:

Failed to map path '/Projects/_PageStart.cshtml'*

What is weird is that if I just "/Projects" instead of
"/Projects/projectone" as the Alias so the config is like the following:

*MonoServerPath /opt/mono/bin/mod-mono-server4


<location /Projects>
   SetHandler mono

the application works no problem. Why does that alias have to be at the
document root? I don't want to go to "domain.com/Projects" to see my asp.net
application, I want it to be one level deeper, so it should work at
"domain.com/Projects/projectone". Any ideas?

View this message in context: 
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
Mono-aspnet-list mailing list
Mono-aspnet-list at lists.ximian.com

More information about the Mono-aspnet-list mailing list