Xampp virtual hosts

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

Xampp virtual hosts

Postby torierja » 25. July 2018 14:09


I have setup virtual host in Xampp 3.2.2 on Windows 10 version 1803.
I have added hosts to windows like this: portal.local

I have added the virtual host to httpd-vhosts.conf like this:

<VirtualHost *:80>
DocumentRoot "E:/dashboard/portal"
ServerName portal.local
<Directory "E:/dashboard/portal">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all

and have uncommented this sentence:
NameVirtualHost *:80

Now when i go to portal.local it sends me to the document root from the httpd.conf file (The xampp dashboard page).
I want it to go to my folder.
How can i do this?

Posts: 1
Joined: 25. July 2018 14:02
XAMPP version: 3.2.2
Operating System: Windows 10 1803

Re: Xampp virtual hosts

Postby Nobbie » 25. July 2018 21:06

Did you remove the comment # in httpd.conf in front of the include, which includes httpd-vhosts.conf?
Posts: 11044
Joined: 09. March 2008 13:04

Re: Xampp virtual hosts

Postby Altrea » 26. July 2018 06:56

The NameVirtualHost *:80 line is not used anymore. You can simply remove this.

The lines
Order allow,deny
Allow from all

was replaced in Apache 2.4 with the Directive Require all granted

I would not recommend to nest virtual hosts. The dashboard folder is not recommend to save your own projects in.

Last not least you need to restart Apache after all changes in the Apache config files.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
AF Moderator
Posts: 9735
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 70 guests