Skip to content

Instantly share code, notes, and snippets.

@rungta
Last active June 19, 2017 12:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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