Mac OSX –デフォルトのlocalhostフォルダーはどこですか?
Mac OSXでは、デフォルトのlocalhostフォルダーは/Library/WebServer/Documents
にあります。
P.S Tested with 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"#...