Skip to content

Instantly share code, notes, and snippets.

@sfengyuan
Last active December 2, 2015 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfengyuan/78fe21de66751f88d840 to your computer and use it in GitHub Desktop.
Save sfengyuan/78fe21de66751f88d840 to your computer and use it in GitHub Desktop.
Apache Setting
<VirtualHost localhost:80>
DocumentRoot "default/site/directory"
ServerName localhost
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
<VirtualHost mysite.loc:80>
DocumentRoot "mysite/path"
ServerName mysite.loc
ErrorLog "logs/mysite.apache.log"
CustomLog "logs/mysite.apache.log" common
</VirtualHost>
DocumentRoot "path/directory"
<Directory "path/directory">
# Indexes allow Directory Listing
Options Indexes FollowSymLinks
IndexOptions FancyIndexing HTMLTable ScanHTMLTitles FoldersFirst NameWidth=85 DescriptionWidth=128 IconWidth=16 IconHeight=16 VersionSort Charset=UTF-8
AllowOverride all
# New permission directive, take the place of Allow/Deny
Require all granted
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment