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

________________________________

From: [EMAIL PROTECTED] on behalf of Gonzalo Paniagua Javier
Sent: Tue 4/27/2004 2:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [Mono-list] Apache virtual hosts, all or some mod_mono



El lun, 26-04-2004 a las 22:53, Andrew Arnott escribi�: 
> I am trying to set up multiple virtual hosts on Apache 2.0.49.  Each 
> of which of course has its own physical root directory.  Trouble is 
> the MonoApplications line only takes virtual directory paths.  Running 
> mod-mono-server.exe and looking at the argument syntax doesn't help. 
> How can I have multiple virtual roots on various virtual hosts, and 
> configure Mono to work on them all? 

MonoApplications takes virtual:physical pairs separated by a comma. 

For your purpose, you have to use the 'Alias virtual "physical"' apache 
directive and when configuring the virtual host, set mod_mono as the 
handler for the virtual directory for that virtual host. 

-Gonzalo 

_______________________________________________ 
Mono-list maillist  -  [EMAIL PROTECTED] 
http://lists.ximian.com/mailman/listinfo/mono-list 

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to