Skip to content

Instantly share code, notes, and snippets.

@aseredenko
Created April 3, 2017 10:15
Show Gist options
  • Select an option

  • Save aseredenko/a807c72e7641b0cf80080ca5c254bd93 to your computer and use it in GitHub Desktop.

Select an option

Save aseredenko/a807c72e7641b0cf80080ca5c254bd93 to your computer and use it in GitHub Desktop.
# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /home/deploy/sites>
AllowOverride All
Require all granted
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment