Skip to content

Instantly share code, notes, and snippets.

@betweenbrain
Created September 23, 2015 13:56
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 betweenbrain/4449590e28cdd80f4090 to your computer and use it in GitHub Desktop.
Save betweenbrain/4449590e28cdd80f4090 to your computer and use it in GitHub Desktop.
Mac OSX 10.10 Apache 2.4 Working Sites Directory

Create file /etc/apache2/users/{username}.conf

Add contents

<Directory "/Users/{username}/Sites/">
AllowOverride All
Options Indexes MultiViews FollowSymLinks
Require all granted
</Directory>

Add your user to _www group

$ sudo dseditgroup -o edit -a `whoami` -t user _www

Edit /etc/apache2/httpd.conf and change User to your username

Restart apache sudo apachectl restart

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