[Mono-list] Mono 1.2, mod_mono and virtual hosts
Gonzalo Paniagua Javier
gonzalo at novell.com
Mon Nov 20 15:44:28 EST 2006
On Sat, 2006-11-18 at 09:20 +0300, Maxim wrote:
> Hello!
>
> I've just updated Mono on my server and found that all sites don't work
> after it.
> My Apache 2.0 was configured to run all web-sites in one instance of
> mod-mono-server, like this (httpd.conf):
>
> AddMonoApplications default "www.site1.com:/:/var/www/html/site1.com"
> AddMonoApplications default "www.site2.com:/:/var/www/html/site2.com"
>
> <VirtualHost *:80>
> ServerName www.site1.com
> DocumentRoot /var/www/html/site1.com
> <Location />
> AddHandler mono .aspx .ascx .config .axd .asax .ashx .asmx
> </Location
> </VirtualHost>
>
> <VirtualHost *:80>
> ServerName www.site2.com
> DocumentRoot /var/www/html/site2.com
> <Location />
> AddHandler mono .aspx .ascx .config .axd .asax .ashx .asmx
> </Location
> </VirtualHost>
>
>
> After updating Mono I can found only the following Apache configuration
> to run web-sites again (multiple instances of mod-mono-server, for each
> virtual host):
>
> <VirtualHost *:80>
> ServerName www.site1.com
> DocumentRoot /var/www/html/site1.com
> MonoApplications /:/var/www/html/site1.com
> <Location />
> AddHandler mono .aspx .ascx .config .axd .asax .ashx .asmx
> </Location
> </VirtualHost>
>
> <VirtualHost *:80>
> ServerName www.site2.com
> DocumentRoot /var/www/html/site2.com
> MonoApplications /:/var/www/html/site2.com
> <Location />
> AddHandler mono .aspx .ascx .config .axd .asax .ashx .asmx
> </Location
> </VirtualHost>
>
> Is there any ways to run all these web-sites in one instance of
> mod-mono-server?
Insert a 'MonoSetServerAlias default' in the locations that have
mod_mono as a handler.
> Also, what should I do to run some web-sites (virtual hosts) using
> mod-mono-server2 (ASP.Net 2.0) ?
Use:
MonoServerPath "/use/bin/mod-mono-server2"
-Gonzalo
More information about the Mono-list
mailing list