Skip to content

Instantly share code, notes, and snippets.

@boschDev
Created October 25, 2016 18:52
Show Gist options
  • Save boschDev/7d536c5e56e18d908bd5be280f2a3840 to your computer and use it in GitHub Desktop.
Save boschDev/7d536c5e56e18d908bd5be280f2a3840 to your computer and use it in GitHub Desktop.
Apache2 website without forbidden message
<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