Virtualhost problems

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

Virtualhost problems

Postby svt.raiden » 25. February 2013 07:38

I have similar problem.
here is my configuration:

Code: Select all
### SK COnsult ###
<VirtualHost *:80>
    ServerAdmin some.email@gmail.com
    DocumentRoot "D:\workspace\web-projects\zend\skconsultproject\skconsult\public"
    ServerName skconsult/
    ##ServerAlias skconsult
    ErrorLog "logs/skconsult-error.log"
    CustomLog "logs/skconsult-access.log" combined
    LogLevel warn
    <Directory "D:\workspace\web-projects\zend\skconsultproject\skconsult\public">
        AllowOverride All
        Options Indexes FollowSymLinks
        Require all granted
    </Directory>
</VirtualHost>

### QC Eleven ###
<VirtualHost *:80>
    ServerAdmin some.email@gmail.com
    DocumentRoot "D:\workspace\web-projects\zend\qcelevenproject\qceleven\public"
    ServerName qceleven/
    ##ServerAlias qceleven
    ErrorLog "logs/qceleven-error.log"
    CustomLog "logs/qceleven-access.log" combined
    LogLevel warn
    <Directory "D:\workspace\web-projects\zend\qcelevenproject\qceleven\public">
        AllowOverride All
        Options Indexes FollowSymLinks
        Require all granted
    </Directory>
</VirtualHost>


No matter what I do - both skconsult/ and qceleven/ give me the skconsult project.
Any ideas?

[EDIT by Altrea: splitted from http://community.apachefriends.org/f/viewtopic.php?f=16&t=52774 - one thread per unique user and issue rule]
svt.raiden
 
Posts: 1
Joined: 25. February 2013 07:32
XAMPP Version: 5.6.3
Operating System: Windows 7 Ultimate

Re: Virtualhost problems

Postby JonB » 25. February 2013 17:48

I don't see a default vhost first - so I am going to guess that skconsult is being served really as the default (not because Apache can't tell them apart).

What exact URL's are you trying to access those folders with?

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

Re: Virtualhost problems

Postby Altrea » 25. February 2013 18:01

I don't know if this has anything to do with it, but AFAIK ServerName should not contain a trailing slash.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6747
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64

Re: Virtualhost problems

Postby JonB » 25. February 2013 19:44

I am definitely over-cranked, I saw that and didn't put it in as a possible cause, which would also fit with my theory of skconsult is being served as the default because both vhosts contain errors.

A look at the error log would help also

I need to get some of that sleep stuff :shock:

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

Re: Virtualhost problems

Postby Nobbie » 25. February 2013 23:13

Altrea wrote:I don't know if this has anything to do with it, but AFAIK ServerName should not contain a trailing slash.


You are right, of course this is wrong. A ServerName MUST NOT contain a slash, as it collides with the slash of a valid URL. A ServerName is neither a Path nor an URL and a trailing slash is simply wrong.
Nobbie
 
Posts: 6917
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests