[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


Hi!

I posted this issue some tome ago in

https://bugzilla.xamarin.com/show_bug.cgi?id=24457

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

Andrus.

-----Algsõnum----- 
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?

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.
_______________________________________________
Mono-aspnet-list mailing list
Mono-aspnet-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list 



More information about the Mono-aspnet-list mailing list