Virtual hosts and main virthost problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Virtual hosts and main virthost problem

Postby jdbg » 16. July 2010 15:51

Hi,

I have the following problem - the virtual hosts, that I added show me the default virtual host instead of the respective directories that I have specified. My httd-vhosts.conf is the following:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName jdbg.dyndns.ws
DocumentRoot "D:\www-default\localhost"
</VirtualHost>

<VirtualHost *:80>
ServerName jdbg1.dynalias.com
DocumentRoot "D:\www-default\jdbg1"
</VirtualHost>


My hosts file is:
127.0.0.1 localhost
127.0.0.1 jdbg.dyndns.ws
127.0.0.1 jdbg1.dynalias.com


When I open any of this vhosts locally it is fine. When I open it from the internet, via the domains above - it opens only the default vhost (i.e. jdbg.dyndns.ws)

Any ideas what I've done wrong?
Last edited by jdbg on 19. July 2010 19:58, edited 1 time in total.
jdbg
 
Posts: 3
Joined: 16. July 2010 15:37

Re: Virtual hosts and main virthost problem

Postby JonB » 18. July 2010 16:53

User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Virtual hosts and main virthost problem

Postby jdbg » 19. July 2010 19:43

I already did look at this topic, but nothing is in there that I tried and worked :(
I don't have the vhosts nested in the primary vhost. I've point the A records of the DNS in the name server correctly.
Still only the default vhost opens when I try to open the other vhosts.

Please help!
jdbg
 
Posts: 3
Joined: 16. July 2010 15:37

Re: Virtual hosts and main virthost problem

Postby JonB » 19. July 2010 20:58

That dynalias.com + dyndns.ws entry could be construed as a workaround to avoid using the Pro or Custom service of DynDNS, and they may have engineered a solution for that - its just a thought. Try two DynDNS entries on the same primary domain instead.

Good Luck
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Virtual hosts and main virthost problem

Postby jdbg » 20. July 2010 13:01

10x JonB, but still doesn't work.

I tried it with another tld domain - pointed the A records to the IP in question and still nothing...

Tried with
1.jdbg.eu (the first vhost)
2.jdbg.eu (the second vhost)

Any ideas on what's wrong with it?
jdbg
 
Posts: 3
Joined: 16. July 2010 15:37

Re: Virtual hosts and main virthost problem

Postby JonB » 20. July 2010 15:27

:idea:
Are you using FireFox or IE?
If you are using FireFox, be sure to dump the browser cache after making any changes.

(its again - only a thought)

You might try looking through the Apache access log (and the error log also) to see what Apache reads as the GET requests, and the error log might point out a misconfiguration.

:shock:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 115 guests