[Mono-list] Mono 1.2, mod_mono and virtual hosts
Maxim
makska at yandex.ru
Sat Nov 18 01:20:00 EST 2006
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?
Also, what should I do to run some web-sites (virtual hosts) using
mod-mono-server2 (ASP.Net 2.0) ?
Highly appreciate any help!
Thanks,
Max
More information about the Mono-list
mailing list