I am using apache2 on redhat linux. I am trying to setup virtual hosts to serve. My pages display correctly using localhost and test.yoursummit.com but when I try to use my test.benefitserver.com virtual host, the images, css, etc files that apache serves don't display. What am I doing wrong? My files are placed in the DocumentRoot directories and are being found when I use localhost or test.yoursummit.com in the url but not when I use test.benefitserver.com. I don't understand.
Here's my /etc/hosts file:
127.0.0.1 localhost.localdomain localhost
69.155.252.166 test.yoursummit.com
Here's my httpd.conf file:
Listen 69.155.252.166:80
Listen 127.0.0.1:80
ServerName test.yoursummit.com
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
ServerAlias test.yoursummit.com
DocumentRoot /var/</VirtualHost>
<VirtualHost *:80>
ServerName test.benefitserver.com
DocumentRoot /var/</VirtualHost>
I really need to get this working today. Your help is greatly appreciated!
Here's my /etc/hosts file:
127.0.0.1 localhost.localdomain localhost
69.155.252.166 test.yoursummit.com
Here's my httpd.conf file:
Listen 69.155.252.166:80
Listen 127.0.0.1:80
ServerName test.yoursummit.com
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
ServerAlias test.yoursummit.com
DocumentRoot /var/</VirtualHost>
<VirtualHost *:80>
ServerName test.benefitserver.com
DocumentRoot /var/</VirtualHost>
I really need to get this working today. Your help is greatly appreciated!