On Mon, May 14, 2001 at 03:44:10PM -0500, David Dyer-Bennet wrote: > "Andy Zbikowski (Zibby)" <zibby at ringworld.org> writes: > > 2> ServerAliais and duplicate ServerName removed. > > ServerName is crucial for a by-name virtual host; that's how Apache > tells them apart. Yeah, but he specified _duplicate_ ServerName removed. > > 3> Shortened ServerName to just the domain so that anything.fireopal.org > > or anything.ytilaer.com pointed to his IP will pull up the correct page. > > I've never tried wildcards there, don't know if it works. > > This fragment does work: > > NameVirtualHost 63.224.10.74 > > # Default host root > <VirtualHost 63.224.10.74> > ServerName www.dd-b.net > ServerAdmin webmaster at dd-b.net > DocumentRoot /usr/users/httpd/html/ > ScriptAlias /cgi-bin /usr/users/httpd/cgi-bin > Alias /sharedicons /usr/users/httpd/html/icons > Alias /shared /usr/users/httpd/shared > ReWriteEngine on > ReWriteLog /var/log/httpd/rewrite > ReWriteLogLevel 0 > ReWriteRule ^/RKBA http://www.a-human-right.com/ > ReWriteRule ^/RKBA/(.*) http://www.a-human-right.com/$1 > ReWriteRule ^/olegv/(.*) http://www.olegvolk.net/$1 > ReWriteRule ^/olegv http://www.olegvolk.net/ > </VirtualHost> > > # Minn-StF web pages can have their own private virtual server > <VirtualHost 63.224.10.74> > ServerName www.mnstf.org > ServerAdmin webmaster at mnstf.org > DocumentRoot /usr/users/httpd/Minn-StF/html > UserDir disabled > Alias /mnstf /usr/users/httpd/Minn-StF/html > ScriptAlias /cgi-bin /usr/users/httpd/cgi-bin > Alias /sharedicons /usr/users/httpd/html/icons > Alias /shared /usr/users/httpd/shared > Include /www/Minn-StF/twiki/httpd.twiki-conf > </VirtualHost> > > # Remap an accidentally-released address April 2001 > <VirtualHost 63.224.10.74> > ServerName minicon.mnstf.org > ServerAdmin webmaster at mnstf.org > UserDir disabled > ReWriteEngine on > ReWriteLog /var/log/httpd/rewrite > ReWriteLogLevel 0 > ReWriteRule ^/(.*) http://www.mnstf.org/minicon/$1 > </VirtualHost> > > <VirtualHost 63.224.10.74> > ServerName www.demesne.com > ServerAdmin webmaster at demesne.com > DocumentRoot /usr/users/httpd/html/test > UserDir disabled > ScriptAlias /cgi-bin /usr/users/httpd/cgi-bin > Alias /sharedicons /usr/users/httpd/html/icons > Alias /shared /usr/users/httpd/shared > </VirtualHost> > > *I* think the problem has something to do with one webroot being > beneath the other one; because one of Scott's earlier posts quoted an > error specifically listing that from the log file. But is that error > still happening? OK, that's not the way _I_ would have interpreted either of the errors I saw. Both errors are gone now - I've tried both the nested and un-nested versions of my httpd.conf (Thanks, Jay & Andy!), and I'm having the same problem both ways. > Anyway, Scott, my suggestion is to *try* un-nesting the web roots, and > see if that does help. It didn't - I'm consistently getting the fireopal.org index.html, regardless of whether or not I ask for fireopal.org or ytilaer.com. DD-B - could I see the rest of your httpd.conf? I'm tending to the opinion that there's something outside of the VirtualHost directives that's screwing me up. -- Scott Raun sraun at fireopal.org