[Mono-list] How to configure N apache virtual hosts using ONE instance of MONO server.

Unai Rodriguez me at u-journal.org
Sat Apr 12 06:19:59 EDT 2008


For clarification purposes, the main difference between my 2 examples 
are on these lines:

MonoApplications "/:/docroot1"
MonoApplications "/:/docroot2"

MonoApplications site "/:/docroot1"
MonoApplications site "/:/docroot2"

unai

Unai Rodriguez wrote:
> Dear All,
> 
> I am having a hard time trying to set up a site which is serving several 
> virtual hosts (Apache's name based virtual hosting) BUT using ONE 
> instance of MONO server.
> 
> Having several instances of mono server running made my web server's 
> memory shoot up. I am not sure if this is expected either.
> 
> My current settings are as follows:
> 
> <VirtualHost *:80>
>      [...]
> 
>      ServerName  site1.example.com
> 
>      DocumentRoot /docroot1
>                                                        	
>      MonoApplications "/:/docroot1"
> 
>      [...]
> </VirtualHost>
> 
> <VirtualHost *:80>
>      [...]
> 
>      ServerName  site2.example.com
> 
>      DocumentRoot /docroot2
>                                                        	
>      MonoApplications "/:/docroot2"
> 
>      [...]
> </VirtualHost>
> 
> This config creates 2 instances of mono. I have tried this also:
> 
> <VirtualHost *:80>
>      [...]
> 
>      ServerName  site1.example.com
> 
>      DocumentRoot /docroot1
>                                                        	
>      MonoApplications site "/:/docroot1"
> 
>      [...]
> </VirtualHost>
> 
> <VirtualHost *:80>
>      [...]
> 
>      ServerName  site2.example.com
> 
>      DocumentRoot /docroot2
>                                                        	
>      MonoApplications site "/:/docroot2"
> 
>      [...]
> </VirtualHost>
> 
> In this case what happens is only one applications is active, meaning:
> 
> http://site1.example.com -> would show up
> 
> http://site2.example.com -> would show an Internal Server Error.
> 
> How am I supposed to configure this? If this is just not possible, am I 
> supposed to expect high RAM usage? Any recommendations about this?
> 
> Thank you so much!
> unai
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list