[Mono-list] Mono 1.2, ahache and virtual hosts troubles

Maxim makska at yandex.ru
Fri Nov 24 04:18:53 EST 2006


Hello,
I'm writing again because I didn't received answer on my previous post 
about this problem.
I've tried to configure Apache 2.0 and Mono 1.2.1 on Fedora Core 4 to 
run several virtual hosts in one instance of mod-mono-server, and one 
virtual host in instance of mod-mono-server2.
The attachment configuration should be work, but doesn't. I've got 
"download" prompt in browser while accessing to "site1" and "site2" 
(mod-mono-server doesn't handle requests to .aspx and other pages of 
these sites) and Error 500 while accessing to "site3".

Could anyone tell me, where I'm wrong? 
To run all these sites on mod-mono-server2 would be good decision too, 
but I don't know how.
Mod_mono FAQ on mono-project.com seems like out dated...

Highly appreciate any answers!

With best wishes,
Maxim Karavaev

------------------------------------------------------

<VirtualHost *:80>
   ServerName www.site1.com
   DocumentRoot /var/www/html/site1.com
   AddMonoApplications default "www.site1.com:/:/var/www/html/site1.com"
   <Location />
      AddHandler mono .aspx .ascx .config .axd .asax .ashx .asmx
      MonoSetServerAlias default
   </Location>
</VirtualHost>

<VirtualHost *:80>
   ServerName www.site2.com
   DocumentRoot /var/www/html/site2.com
   AddMonoApplications default "www.site2.com:/:/var/www/html/site2.com"
   <Location />
      AddHandler mono .aspx .ascx .config .axd .asax .ashx .asmx
      MonoSetServerAlias default
   </Location>
</VirtualHost>

<VirtualHost *:80>
   ServerName www.site3.com
   DocumentRoot /var/www/html/site3.com
   AddMonoApplications site3app "www.site3.com:/:/var/www/html/site3.com"
   MonoServerPath "/usr/bin/mod-mono-server2"
   <Location />
      AddHandler mono .aspx .ascx .config .axd .asax .ashx .asmx
      MonoSetServerAlias site3app
   </Location>
</VirtualHost>


More information about the Mono-list mailing list