[Mono-list] Apache virtual hosts, all or some mod_mono

Michael stuff@dustsmoke.com
Wed, 28 Apr 2004 20:41:17 -0700 (MST)


> Maybe I can make my question more clear.
>
> I have one Apache 2.0 server running.  It must handle requests for
> several domains:
>
> gerontology.byu.edu
> fhss.byu.edu
> familylife.byu.edu
> and anyway you get the idea.
>
> Several of these domains will be sites that use mod_mono, all on the
> same Apache 2.0.49 server. I can use "virtual hosts" in Apache to get
> Apache to respond with different root directories for each URL request.
> My problem is getting mod_mono to also recognize the virtual hosts (NOT
> virtual directories within one host) and serve up the correct root
> directories.
>
> Here is what we are trying in httpd.conf:
>
> LoadModule mono_module modules/libmod_mono.so
> # Note that these next paths are NOT virtual directories, but should be
> roots in virtual hosts MonoApplications
> "/:/var/www/gerontology,/:/var/www/fhss,/:/var/www/familylife" # ...
> NameVirtualHost *:80
> <VirtualHost *:80>
>      ServerName gerontology.byu.edu
>      DocumentRoot /var/www/gerontology
> </VirtualHost>
> <VirtualHost *:80>
>     ServerName fhss.byu.edu
>     DocumentRoot /var/www/fhss
> </VirtualHost>
>
> The trouble is that mod_mono appears to be trying to pull, for example,
> FHSS.byu.edu content from gerontology.byu.edu.  There is no way to
> specify virtual hosts in the MonoApplications directive, rather just
> virtual directories, which doesn't fit here.
>
> Thanks in advance for your help!
>
> Andrew Arnott

I too have been trying to figure this one out. I can't do it either.

-- 
Michael