Apache config to disable .htaccess files & include it in .conf
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
# 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