Created
January 20, 2022 08:35
-
-
Save MushuLeDragon/d9bbd1bac03fa94fef15292101e3187d to your computer and use it in GitHub Desktop.
Example of Vhosts configuration for apache2
This file contains hidden or 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
127.0.0.1 mywebsite.lan | |
::1 mywebsite.lan | |
127.0.0.1 example.lan | |
::1 example.lan |
This file contains hidden or 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
# Wamp : c:/wamp64/bin/apache/apache2.4.23/conf/extra/httpd-vhosts.conf | |
# | |
<VirtualHost *:80> | |
ServerName mywebsite.lan | |
DocumentRoot "c:/wamp64/www/mywebsite" | |
<Directory "c:/wamp64/www/mywebsite/"> | |
Options +Indexes +Includes +FollowSymLinks +MultiViews | |
AllowOverride All | |
Require local | |
</Directory> | |
</VirtualHost> | |
# | |
<VirtualHost *:80> | |
ServerName example.lan | |
DocumentRoot "c:/wamp64/www/example" | |
<Directory "c:/wamp64/www/example/"> | |
Options +Indexes +Includes +FollowSymLinks +MultiViews | |
AllowOverride All | |
Require local | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment