Vhost, Chrome choose the DocumentRoot :(

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

Vhost, Chrome choose the DocumentRoot :(

Postby lbottoni » 11. April 2018 09:43

0
down vote
favorite

I have a very strange problem with chrome. I have created a new vhost in xampp and the configuration it's very basicaly.

in Firefox work fine and i see "pippo 3" in the page.
in IEwork fine and i see "pippo 3" in the page.
in Chrome not work fine and i see "hello world" in the page.

it's not the first vhost in my xampp , but this is only one that have this crazy leads.

Define myhost test.dev.localhost
Define DocumentRoot C:\xampp\htdocs\test

Code: Select all
<VirtualHost ${myhost}:80>
DocumentRoot ${DocumentRoot}
ServerName ${myhost}
DirectoryIndex index.localhost.html index.php index.html index.htm

<Directory "C:\xampp\htdocs\test">
    AllowOverride none
    Require all granted
</Directory>
</VirtualHost>

I have removed all caches from any browser, but i can not understand why chrome not want work correctly.

Image

if i try to change the VHOST port in 9999 (<VirtualHost ${myhost}:9999>) the xampp not work :evil: it's a very wrong lead :roll:
computer and xampp restarted many times
lbottoni
 
Posts: 1
Joined: 11. April 2018 09:36
XAMPP version: 3.2.2
Operating System: window 10

Re: Vhost, Chrome choose the DocumentRoot :(

Postby Altrea » 11. April 2018 13:44

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: 9366
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Vhost, Chrome choose the DocumentRoot :(

Postby Nobbie » 12. April 2018 00:40

What are these Define statements and the $-Parameters? Thats not a valid syntax for Apache, i havent seen that before.
Nobbie
 
Posts: 10621
Joined: 09. March 2008 13:04

Re: Vhost, Chrome choose the DocumentRoot :(

Postby Altrea » 12. April 2018 05:42

Nobbie wrote:What are these Define statements and the $-Parameters? Thats not a valid syntax for Apache, i havent seen that before.

It is part of the Apache core
http://httpd.apache.org/docs/2.4/en/mod ... tml#define
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: 9366
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 42 guests