Mac OSX – デフォルトのlocalhostフォルダはどこですか?
Mac OSXでは、デフォルトのlocalhostフォルダは `/Library/WebServer/Documents`にあります
P.S MacOS Sierraでテスト、10.12.6
httpd.confを検索する
デフォルトでは、Apacheは
httpd.conf`ファイル内の
/etc/apache2/
にインストールされ、
DocumentRoot`を見つけてどこにデフォルトのlocalhostフォルダがあるかを調べます。
sudo vim/etc/apache2/httpd.conf
# DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/Library/WebServer/Documents" <Directory "/Library/WebServer/Documents"> #... </Directory>