Red Hat 9 - Apache 2
I once had my apache working in the following manner.
I could enter my IP address (say 222.222.222.1)and it would take me to the documents i had under USER1
I could also enter my 2nd IP address (say 222.222.222.2) and it would take me to the documents i had under USER2
I could enter my domain name and it would take me to the documents i had for company1
I could enter my domain name and it would take me to the documents i had for company2
But now only my domain names work, if i try to start apache with an IP address in the ServerName Directive it fails.
Here is the VirtualHost section as it was before it stopped working:
NameVirtualHost *
<VirtualHost *>
ServerAdmin me@me.com
DocumentRoot /ServerName 222.222.222.1
</VirtualHost>
<VirtualHost *>
ServerAdmin me@me.com
DocumentRoot /ServerName 222.222.222.2
</VirtualHost>
<VirtualHost *>
ServerAdmin me@me.com
DocumentRoot /ServerName </VirtualHost>
<VirtualHost *>
ServerAdmin me@me.com
DocumentRoot /ServerName </VirtualHost>
Is this still possible? Was it a fluke that i had it working the 1st time?
Thanks
Pete
petebud@yahoo.com
I once had my apache working in the following manner.
I could enter my IP address (say 222.222.222.1)and it would take me to the documents i had under USER1
I could also enter my 2nd IP address (say 222.222.222.2) and it would take me to the documents i had under USER2
I could enter my domain name and it would take me to the documents i had for company1
I could enter my domain name and it would take me to the documents i had for company2
But now only my domain names work, if i try to start apache with an IP address in the ServerName Directive it fails.
Here is the VirtualHost section as it was before it stopped working:
NameVirtualHost *
<VirtualHost *>
ServerAdmin me@me.com
DocumentRoot /ServerName 222.222.222.1
</VirtualHost>
<VirtualHost *>
ServerAdmin me@me.com
DocumentRoot /ServerName 222.222.222.2
</VirtualHost>
<VirtualHost *>
ServerAdmin me@me.com
DocumentRoot /ServerName </VirtualHost>
<VirtualHost *>
ServerAdmin me@me.com
DocumentRoot /ServerName </VirtualHost>
Is this still possible? Was it a fluke that i had it working the 1st time?
Thanks
Pete
petebud@yahoo.com