Quick Apache Setup - Change localhost path on macSierra for Test Only

To quickly change the localhost path from default (/Library/WebServer/Documents) to your path and bypass all the permission problems

  • edit DocumentRoot in /private/etc/apache2/httpd.conf and set it to your path, both "DocumentRoot" and "Directory"
  • add the following lines
Options Indexes FollowSymLinks Multiviews
(Indexes is so you can view directory) 
  • change User from _www to your username

This is for single machine and for test only as it will not be highly secure but it's a quick way for not having to do all the permission change on your test web directory.

Popular posts from this blog

Make keyboard on PC behave like Mac