Skip to content

Instantly share code, notes, and snippets.

@BrainFeeder
Created March 31, 2017 09:17
Show Gist options
  • Save BrainFeeder/5bcf4acabdc6833da1de450e8d2f866c to your computer and use it in GitHub Desktop.
Save BrainFeeder/5bcf4acabdc6833da1de450e8d2f866c to your computer and use it in GitHub Desktop.
Apache Virtual host example
Virtual host servername
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName appname.local
DocumentRoot C:/wamp64/www/appfolder/public_html
<Directory "c:/wamp64/www/appfolder/public_html">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
# Remember to add a rule in the Windows host file
# 127.0.0.1 appname.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment