8

I've always used: Setting up a local web server on OS X to set up my localhost and userdirs.

After upgrading to Sierra, yesterday, my localhost web server wasn't working anymore.

I tried following the tutorial again but I'm not able to get into my userdir.

localhost works:

works

user shortname - fails:

fail

Are there any other configurations that need to be made on Sierra to get userdirs to work?

klanomath
  • 66,391
  • 9
  • 130
  • 201
Mou某
  • 881

1 Answers1

9

There is an updated tutorial here: How to Set up Apache in macOS Sierra 10.12

It includes extra configurations like uncommenting the following lines by removing the "#":

#LoadModule userdir_module libexec/apache2/mod_userdir.so
...
#LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
...
#Include /private/etc/apache2/extra/httpd-userdir.conf
...
#Include /private/etc/apache2/extra/httpd-vhosts.conf

in /etc/apache2/httpd.conf

and uncommenting:

#Include /private/etc/apache2/users/*.conf

in /etc/apache2/extra/httpd-userdir.conf

and restarting apache: sudo apachectl restart

It should work.

klanomath
  • 66,391
  • 9
  • 130
  • 201
Mou某
  • 881