Skip to content

Instantly share code, notes, and snippets.

@MushuLeDragon
Created January 20, 2022 08:35
Show Gist options
  • Save MushuLeDragon/d9bbd1bac03fa94fef15292101e3187d to your computer and use it in GitHub Desktop.
Save MushuLeDragon/d9bbd1bac03fa94fef15292101e3187d to your computer and use it in GitHub Desktop.
Example of Vhosts configuration for apache2
127.0.0.1 mywebsite.lan
::1 mywebsite.lan
127.0.0.1 example.lan
::1 example.lan
# 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