Created
October 25, 2016 18:52
-
-
Save boschDev/7d536c5e56e18d908bd5be280f2a3840 to your computer and use it in GitHub Desktop.
Apache2 website without forbidden message
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 *:80> | |
ServerAdmin {{email}} | |
ServerName {{domain}} | |
DocumentRoot {{website root}} | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
<Directory {{website root}}> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
allow from all | |
Require all granted | |
</Directory> | |
ErrorLog ${APACHE_LOG_DIR}/{{domain}}-error.log | |
LogLevel warn | |
CustomLog ${APACHE_LOG_DIR}/{{domain}}-access.log | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment