Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
Enable overrides after httpd setup
Browse files Browse the repository at this point in the history
This will allow .htaccess to block access to .git directory and such.
  • Loading branch information
Eric Shepherd committed May 26, 2016
1 parent 084626f commit 13d8203
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ find /var/www -type d -exec chmod 2775 {} +

find /var/www -type f -exec chmod 0664 {} +

# Ensure that overrides are allowed in htaccess Files

sed -i.previous '/<Directory \"\/var\/www\/html\">/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf

# Make sure the web server is running

echo "Starting HTTP server..."
Expand Down

0 comments on commit 13d8203

Please sign in to comment.