I'm trying to set up Apache
which includes putting this path into httpd-vhosts.conf
file:
DocumentRoot "/usr/local/var/www"
but I can't find the folder. The only path that seems to resemble the folder is /private/var
but it doesn't contain a www
folder/file. Where is it located?
DocumentRoot
to whatever value you want - the only restriction is that the user that runs the Apache web server must be able to read the directory contents. If you don't want to create/usr/local/var/www
, use a different directory, for example/Library/WebServer/Documents
(this is the directory the Apache web server included with macOS uses, see/etc/apache2/httpd.conf
).~/Sites
and/Library/WebServer/Documents
so use caution if you prefer/usr/local
and everyone needs to watch for Previous Items when updates run. Avoiding [ACL permissions](apple.stackexchange.com/a/365364/5472 ) might be a good reason for local based storage and posix permissions.