-
-
Save i-amolo/8375883ecc50681935c242cec013ff98 to your computer and use it in GitHub Desktop.
How to set up a virtual host in Apache (WAMP, MAMP, XAMPP) (code to accompany https://youtu.be/kRfo5OPUC2M)
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
<VirtualHost *:80> | |
DocumentRoot "/www/project1" | |
ServerName site1.localhost | |
<Directory "/www/project1"> | |
Require all granted | |
AllowOverride All | |
</Directory> | |
</VirtualHost> | |
<VirtualHost *:80> | |
DocumentRoot "/www/project2" | |
ServerName site2.localhost | |
<Directory "/www/project2"> | |
Require all granted | |
AllowOverride All | |
</Directory> | |
</VirtualHost> | |
<VirtualHost *:80> | |
DocumentRoot "/path/to/original/web/root" | |
ServerName localhost | |
</VirtualHost> |
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
# Virtual hosts | |
Include etc/extra/httpd-vhosts.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment