Forum Moderators: phranque

Message Too Old, No Replies

TLD and virtual hosts

         

rjd27

9:43 pm on Nov 17, 2005 (gmt 0)

10+ Year Member



Hi, this is my first post.
If I'm in the wrong area, just let me know.

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]

jdMorgan

9:57 pm on Nov 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



R.J.,

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

rjd27

2:23 am on Nov 20, 2005 (gmt 0)

10+ Year Member



I've read the documentation a couple of times. I've searched Google for similiar instances.

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.

jdMorgan

2:28 am on Nov 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You wrote:
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.

In light of that, you might want to re-read my previous post in detail.

Jim