grobermatic
Technical User
Hi,
Here is my virtual host section from my httpd.conf file:
I'm running Posadis 0.60.6 DNS server. I have both domains setup:
tokentheatre.co.uk.prm (master file)
lomasnet.com.prm (master file)
These both have setup within them.
When I call (I have an index.html file in the root directory for each domain) I always see the file from the tokentheatre.co.uk domain.
From what I can see the 2 virtual hosts are set up correctly as I have simply copied the settings and changed the custom values.
Is there anything else I should be checking? or anyway of debugging the code... stepping through it to see the path it takes?
Any suggestions would be most welcome
Many thanks
Craig
--------------------------------------------------------------------------------------------------------
"Time-traveling is just too dangerous. Better that I devote myself to study the other great mystery of the universe: Women!" .. Dr E. Brown (1985)
Here is my virtual host section from my httpd.conf file:
Code:
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:[URL unfurl="true"]http://httpd.apache.org/docs-2.0/vhosts/>[/URL]
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
# 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 *:80>
#ServerAdmin webmaster@tokentheatre.co.uk
ServerName tokentheatre.co.uk
DocumentRoot htdocs/Sites/tokentheatre.co.uk
#ErrorLog logs/dummy-host.example.com-error_log
#CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
<VirtualHost *:80>
#ServerAdmin webmaster@lomasnet.com
ServerName lomasnet.com
DocumentRoot htdocs/Sites/lomasnet.com
#ErrorLog logs/dummy-host.example.com-error_log
#CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
I'm running Posadis 0.60.6 DNS server. I have both domains setup:
tokentheatre.co.uk.prm (master file)
lomasnet.com.prm (master file)
These both have setup within them.
When I call (I have an index.html file in the root directory for each domain) I always see the file from the tokentheatre.co.uk domain.
From what I can see the 2 virtual hosts are set up correctly as I have simply copied the settings and changed the custom values.
Is there anything else I should be checking? or anyway of debugging the code... stepping through it to see the path it takes?
Any suggestions would be most welcome
Many thanks
Craig
--------------------------------------------------------------------------------------------------------
"Time-traveling is just too dangerous. Better that I devote myself to study the other great mystery of the universe: Women!" .. Dr E. Brown (1985)