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

uneatenbreakfast uneatenbreakfast at gmail.com
Fri Jan 16 04:00:37 UTC 2015


Hi,

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
"/var/zpanel/hostdata/zadmin/public_html/domain_com/Projects/projectone"
MonoApplications
"/Projects/projectone:/var/zpanel/hostdata/zadmin/public_html/domain_com/Projects/projectone"

<location /Projects/projectone>
   SetHandler mono
</location>*


However I just get the error:

*System.InvalidOperationException
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
Alias
/Projects"/var/zpanel/hostdata/zadmin/public_html/domain_com/Projects/projectone"

MonoApplications
"/Projects:/var/zpanel/hostdata/zadmin/public_html/domain_com/Projects/projectone"

<location /Projects>
   SetHandler mono
</location>*

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: http://mono.1490590.n4.nabble.com/How-to-set-a-mod-mono-asp-net-application-that-isn-t-at-the-document-root-tp4665246.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list