Forum Moderators: phranque
I'm running apache 2.0.55 with cygwin on a winXP sp2 machine. The windows firewall is on with exceptions.
<snip>
I have one ip address.
I am using a netgear router with port forwarding (I have four different machines running and need to file share between machines. which is why I didn't buy a hub instead).
I've added a couple of virtual host directives to the httpd.conf file, through the Include command.
one vhost is for the main server, example.com. the second is for staging.example.com.
both directories reside on the same machine.
I cannot resolve the staging server (it is aliased in the DNS to point to example.com).
But, if I remove the vhost for example.com, then the vhost directive for staging resolves to the main server domain.
I'm running out of ideas of what to look for. If anyone has suggestions, it will be appreciated.
Let me know if you need more info.
Thanks.
R.J.
[edited by: jdMorgan at 10:03 pm (utc) on Nov. 17, 2005]
[edit reason] No URLs please. See TOS. [/edit]
Welcome to WebmasterWorld!
Have you compared your code to that given here [httpd.apache.org]?
It sounds like only the default server is being recognized, since the staging server is recognized if the default server config is removed. If either server resolves, you can rule out your router/firewall, etc. and since you can get them to resolve separately, it's not a DNS problem, either.
Jim
The specific message I receive when trying to resolve staging.example.com, is: "the connection was refused when attempting to contact..."
do I need to be running my own DNS server for my LAN? I have a DNS service, for my registered domain.
The message isn't a permissions issue. and, I've made sure that the directories and files are permissions correct.
my only other thought, is that my DNS service isn't allowing wildcard characters. I have *.example.com aliased to the A record of example.com.
R.J.