Skip to content

Instantly share code, notes, and snippets.

@rungta
Last active June 19, 2017 12:34
Show Gist options
  • Save rungta/fd7edc3940ca9279b2095fb961466b8d to your computer and use it in GitHub Desktop.
Save rungta/fd7edc3940ca9279b2095fb961466b8d to your computer and use it in GitHub Desktop.
Apache config to disable .htaccess files & include it in .conf
# This file is for ServerPilot configurations
# and should be located at /etc/apache-sp/vhosts.d/<APPNAME>.d
# See: https://gist.github.com/rungta/fd7edc3940ca9279b2095fb961466b8d
<Directory ${DOCUMENT_ROOT}>
# Disable .htaccess files
AllowOverride None
# Include root/.htaccess file
# the last character is a glob so that it silently ignores missing file
IncludeOptional ${DOCUMENT_ROOT}/.htacces[s]
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment