Skip to content

Instantly share code, notes, and snippets.

@leejinseok
Last active July 26, 2017 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leejinseok/25a3eb7afd7f3b3cb57539bc27f1abf0 to your computer and use it in GitHub Desktop.
Save leejinseok/25a3eb7afd7f3b3cb57539bc27f1abf0 to your computer and use it in GitHub Desktop.
apache2 config
# /etc/apache2/apache2.conf
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None -> all
Require all granted
</Directory>
------------------------
<FilesMatch "^\.ht">
Require all denied -> granted
</FilesMatch>
# /etc/apache2/mods-available/dir.conf
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment