Skip to content

Instantly share code, notes, and snippets.

@pengmaradi
Last active August 4, 2017 21:21
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 pengmaradi/33fcdf104ba792e61f9e94fd6e2d2a60 to your computer and use it in GitHub Desktop.
Save pengmaradi/33fcdf104ba792e61f9e94fd6e2d2a60 to your computer and use it in GitHub Desktop.
/etc/apache2/httpd.conf

# /etc/apache2/httpd.conf

LoadModule rewrite_module libexec/apache2/mod_rewrite.so
# if has php7
#LoadModule php5_module        libexec/apache2/libphp5.so


<Directory "/Library/WebServer/Documents">
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

sudo apachectl restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment