Hi Everyone,
I am not band new to linux or or apache but I am have a dickens of a time trying to configure virtual hosts.
I am running Redhat 7.2 withApache 1.3.22 and php 4.
I have tried many different configurations which always results to domain2 always resloves to domain1 root directory.
I have used and to view http header info to make sure the host information and IP address are correct. They are and the test also displays the correct content in the appropriate root directions!!!
I could not find a method here to post entire httpd.conf file so here is the the VHost portion.
It looks good to me, my domains resolve properly and I have verified by ping and host of each domain.
I have even gone a step further and for the Global Root directory have /usr/local/apache/virtual so if a nonresolving request comes through, I would see a different page. I have seen this index file with different configuration attemps. I have spent the last 2 days heavily researching this and still can not get it to work.
Any help would greatly be appreciated..
conf snipet
NameVirtualHost *
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *>
DocumentRoot /usr/local/apache/html
ServerName <Directory /usr/local/apache/html>
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost *>
DocumentRoot /usr/local/apache/101casinoparties
ServerName <Directory /usr/local/apache/101casinoprarties>
allow from all
Options +Indexes
</Directory>
</VirtualHost>
I am not band new to linux or or apache but I am have a dickens of a time trying to configure virtual hosts.
I am running Redhat 7.2 withApache 1.3.22 and php 4.
I have tried many different configurations which always results to domain2 always resloves to domain1 root directory.
I have used and to view http header info to make sure the host information and IP address are correct. They are and the test also displays the correct content in the appropriate root directions!!!
I could not find a method here to post entire httpd.conf file so here is the the VHost portion.
It looks good to me, my domains resolve properly and I have verified by ping and host of each domain.
I have even gone a step further and for the Global Root directory have /usr/local/apache/virtual so if a nonresolving request comes through, I would see a different page. I have seen this index file with different configuration attemps. I have spent the last 2 days heavily researching this and still can not get it to work.
Any help would greatly be appreciated..
conf snipet
NameVirtualHost *
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *>
DocumentRoot /usr/local/apache/html
ServerName <Directory /usr/local/apache/html>
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost *>
DocumentRoot /usr/local/apache/101casinoparties
ServerName <Directory /usr/local/apache/101casinoprarties>
allow from all
Options +Indexes
</Directory>
</VirtualHost>