Created
October 30, 2014 14:28
-
-
Save esedic/45065dfe46dd4d25dff7 to your computer and use it in GitHub Desktop.
Virtual Hosts on XAMPP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Find C:\xampp\apache\conf\extra\httpd-vhosts.conf | |
// Apache below 2.4 | |
<VirtualHost *:80> | |
DocumentRoot "C:/xampp/htdocs/testsite" | |
ServerName testsite.dev | |
ServerAlias www.testsite.dev | |
<Directory "c:/xampp/htdocs/testsite"> | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> | |
// Apache 2.4 + | |
<VirtualHost *:80> | |
DocumentRoot "C:/xampp/htdocs/testsite" | |
ServerName testsite.dev | |
ServerAlias www.testsite.dev | |
<Directory "c:/xampp/htdocs/testsite"> | |
AllowOverride All | |
Require all Granted | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment