Wednesday, December 28, 2016

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
AllowOverride All

  • change User from _www to



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.