[Mono-list] Multiple ASP.net VirtualHosts, running as `/'

Gonzalo Paniagua Javier gonzalo.reply.to.the.list.iam.subscribed@ximian.com
Fri, 11 Jun 2004 09:38:57 +0200


El vie, 11-06-2004 a las 05:21, Steve Deobald escribió:
> Does anyone know the proper way of configuring the snazzy new beta2
> mod_mono to run on multiple VirtualHosts as `/'?
> 
> Here is my current configuration:
> 
> <VirtualHost 34.65.21.12>
>     Alias / "/home/something/public_html/"
>     MonoApplications "/:/home/something/public_html/"
>     <Directory /home/something/public_html/>
>         SetHandler mono
>     </Directory>
> 
>     [...everything else...]
> </VirtualHost>
> 
> This works fine for `www.something.com', but I have another
> <VirtualHost> directive farther down my httpd.conf which specifies
> another Mono app to run as "/". However, it redirects to
> `/home/something/public_html/', rather than its own directory. Any
> ideas? Is there a way to limit the `Alias' (which I'm assuming is the
> problem) to a single VirtualHost? Thanks.

You don't need the alias for / if you use DocumentRoot
(http://httpd.apache.org/docs-2.0/mod/core.html#documentroot) and then
<Location />
	SetHandler mono
</Location>

and, btw, then ending / after all public_html you have might be wrong.

-Gonzalo