Hi All
I don't know if I even asked that question in a way that makes sense - I'm
still learning! :)
The following is happening (I have a virtualserver):
I've two domains, eg:
domain1.com
domain2.com
I want to direct the two domains to:
blah/htdocs/domain1
blah/htdocs/domain2
I have VirtualHost entries for each domain like this:
<VirtualHost domain1.com www.domain1.com>
DocumentRoot /usr/local/etc/httpd/htdocs/domain1
ServerName domain1.com
</VirtualHost>
<VirtualHost domain2.com www.domain2.com>
DocumentRoot /usr/local/etc/httpd/htdocs/domain2
ServerName domain2.com
</VirtualHost>
domain2.com OR domain1.com always points to /htdocs
...apparently dependant on these entries within the httpd.conf
ServerName domain1.com.au
ServerRoot /usr/local/etc/httpd
With the above configuration this is the way things would be pointed:
http://domain1.com -> /htdocs
http://www.domain1.com -> /htdocs/domain1
http://domain2.com -> /htdocs/domain2
http://www.domain2.com -> /htdocs/domain2
But if I change ServerName domain1.com.au to be ServerName domain2.com.au
this is what happens:
http://domain1.com -> /htdocs/domain1
http://www.domain1.com -> /htdocs/domain1
http://domain2.com -> /htdocs
http://www.domain2.com -> /htdocs/domain2
Those are the details. The question is this. HOW can I have the httpd.conf
direct the two domains to their respective subdirectories, WITHOUT having
this over-ruling happening? Deleting the Servername setting doesn't seem to
work - somehow the server seems still knows what it's main domain is.
Please help!
Glenn
--
----
email replies to ghuth.geo at yahoo.com (i.e. Remove "SPAMBLOCK" from email
address )