PenguinPwrdBox,
It is working now...I don't know why. The only difference between now and yesterday is where the NameVirtualHost line is. Yesterday it was above all of the virtualhost containers, today it's just above the affected containers.
I was trying to set up name based virt hosting but Apache would serve the default no content (Welcome to Red Hat...) page even though the docroot specified had pages. It wouldn't even do a dir list if I enabled it. What would overide the documentroot that I put in the virtualhost container? Does it matter if the NameVirtualHost line is above all of the virtualhost entries instead of being directly above the ones targetted?
thanks!
From the httpd.conf:
NameVirtualHost 12.163.x.x # yesterday this line was above all the virtualhost, today it is here.
<VirtualHost 12.163.x.x>
DocumentRoot "/var/www/site1"
ServerName store.site1.net
DirectoryIndex index.php index.html
<Directory "/var/www/site1">
allow from all
Options -Indexes
</Directory>
</VirtualHost>
<VirtualHost 12.163.x.x>
DocumentRoot "/var/www/site2"
ServerName fat.site2.net
DirectoryIndex index.php index.html
<Directory "/var/www/site2">
allow from all
Options -Indexes
</Directory>
</VirtualHost>
|