V-Hosts problems

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

V-Hosts problems

Postby Rhinofart » 21. January 2009 19:27

Ok, so here it is. I transformed my webserver from a VM image running on ESXi 3.5 to a dedicated physical machine. I created the new machine identical to the VM Image. Server name, folder structure and all. What I was planning to do was re-install XAMPP on the new physical machine, and then just copy the webhosting directory over to the new server. After all, I did that when I went to the VM image in the first place, and it worked like a champ. But now, after installing xampp on the new machine I am having problems with multiple websites. When I goto the directories from on the local host (http://localhost/site1, http://localhost/site2, etc) the sites come up fine. When I try to access the sites from outside, everything reverts to site1. Now this is strange. There is nothing wrong with the router in place either, as it's the same router that was infront of the VM image as well. The real kick in the butt here, was I was so confident that this would work flawlessly like it did when I went to the VM Image, that I started the reload of the VM Image already. Here is the printout of what apache\bin\apache -S gives me.

C:\Webhost\apache\bin>apache -S
[Wed Jan 21 09:48:36 2009] [warn] NameVirtualHost http://www.thisissite1.com:80 has no VirtualHosts
[Wed Jan 21 09:48:36 2009] [warn] NameVirtualHost localhost:80 has no VirtualHosts
[Wed Jan 21 09:48:36 2009] [warn] NameVirtualHost http://www.thisissite2.com:80 has no VirtualHosts
[Wed Jan 21 09:48:36 2009] [warn] NameVirtualHost http://www.thisissite3.com:80 has no VirtualHosts
[Wed Jan 21 09:48:36 2009] [warn] NameVirtualHost http://www.thisissite4.com:80 has no VirtualHosts
[Wed Jan 21 09:48:36 2009] [warn] NameVirtualHost http://www.thisissite5:80has no VirtualHosts
[Wed Jan 21 09:48:36 2009] [warn] NameVirtualHost http://www.thisissite6.com:80 has no VirtualHosts
[Wed Jan 21 09:48:36 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
VirtualHost cnfiguration:
123.123.123.123:80 is a NameVirtualHost
default server http://www.mansmaxx.com (C:/Webhost/apache/conf/extra/httpd-vhosts.conf:88)
port 80 namevhost http://www.mansmaxx.com (C:/Webhost/apache/conf/extra/httpd-vhosts.conf:88)
123.123.123.123:80 is a NameVirtualHost
default server http://www.mydefaultsite.com (C:/Webhost/apache/conf/extra/httpd-vhosts.conf:58)
port 80 namevhost http://www.bokreferralgroup.com (C:/Webhost/apache/conf/extra/httpd-vhosts.conf:58)
port 80 namevhost http://www.thisissite2.com (C:/Webhost/apache/conf/extra/httpd-vhosts.conf:68)
port 80 namevhost http://www.thisissite3.com (C:/Webhost/apache/conf/extra/httpd-vhosts.conf:78)
port 80 namevhost http://www.thisissite4.com (C:/Webhost/apache/conf/extra/httpd-vhosts.conf:98)
port 80 namevhost http://www.thisissite1.com (C:/Webhost/apache/conf/extra/httpd-vhosts.conf:118)
port 80 namevhost http://www.thisissite5.com (C:/Webhost/apache/conf/extra/httpd-vhosts.conf:128)
port 80 namevhost http://www.thisissite6.com.com (C:/Webhost/apache/conf/extra/httpd-vhosts.conf:138)

wildcard NameVirtualHosts and _default_ servers:_default_:443 localhost (C:/Webhost/apache/conf/extra/httpd-ssl.conf:74)
Syntax OK

Sites are all in the C:\Webhost\htdocs folder, and from what I can see my conf files are correct. Somebody please help. If there is any other information you need posted just let me know.
Last edited by Rhinofart on 21. January 2009 19:52, edited 1 time in total.
Rhinofart
 
Posts: 4
Joined: 21. January 2009 19:18

Re: V-Hosts problems

Postby Wiedmann » 21. January 2009 19:39

and from what I can see my conf files are correct.

You think, all that warnings ([warn]) are OK? Well, something is wrong with your VHost configuration.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: V-Hosts problems

Postby Rhinofart » 21. January 2009 19:58

LOL yes, from what I can tell when I look at the CONF files, they look ok, and they are the exact same files as what was on the VM Image. So......... they have worked in the past.
Rhinofart
 
Posts: 4
Joined: 21. January 2009 19:18

Re: V-Hosts problems

Postby Wiedmann » 21. January 2009 20:16

So......... they have worked in the past.

Well, sometimes a wrong configuration can work on one box, but there is no guarantee it works on every box.
--> Correct your configuration and you are a happy guy.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: V-Hosts problems

Postby Rhinofart » 21. January 2009 20:19

any insight into which of the configs it is? I assume V-Hosts
Rhinofart
 
Posts: 4
Joined: 21. January 2009 19:18

Re: V-Hosts problems

Postby Wiedmann » 21. January 2009 20:41

C:/Webhost/apache/conf/extra/httpd-vhosts.conf
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: V-Hosts problems

Postby Rhinofart » 21. January 2009 20:48

I'm also assuming that this is why all the sites hosted by that webserver all point to that one site from the outside.
Rhinofart
 
Posts: 4
Joined: 21. January 2009 19:18

Re: V-Hosts problems

Postby Wiedmann » 21. January 2009 22:30

I'm also assuming that this is why all the sites hosted by that webserver all point to that one site from the outside.

I don't know, my crystal ball is broken...

(I only know, somthing is wrong with your vhost configuration, but I don't what you have configured / what is in that file.)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests