Last active
December 2, 2015 05:54
-
-
Save sfengyuan/78fe21de66751f88d840 to your computer and use it in GitHub Desktop.
Apache Setting
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 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> |
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
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