Virtualhost pulling from the same site??
Posted
by
Matt
on Server Fault
See other posts from Server Fault
or by Matt
Published on 2011-01-30T16:21:46Z
Indexed on
2011/01/31
7:27 UTC
Read the original article
Hit count: 571
I have my httpd.conf on fedora 8 that I am setting the virtual host file. Here is what I have:
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
then below I am trying to setup a vhost to have multiple sites on the server:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName kadence.tv
DocumentRoot /var/www/html/
</VirtualHost>
<VirtualHost *:80>
ServerName nacc.biz
DocumentRoot /var/www/html/nacc/
</VirtualHost>
also in the /var/www/html/ directory I have the index.php file for the kadence site...when I do to either site I get the index for the kadence site...any ideas what I am doing wrong
EDIT the full contents of my httpd configuration file are here.
© Server Fault or respective owner