httpdの場所
satoshis@iMac ~ % which httpd /usr/sbin/httpd
apachectlの場所
satoshis@iMac ~ % which apachectl /usr/sbin/apachectl
httpd.confの場所
satoshis@iMac ~ % ls -l /etc/apache2/ total 88 drwxr-xr-x 14 root wheel 448 1 1 2020 extra -rw-r--r-- 1 root wheel 21641 1 1 2020 httpd.conf -rw-r--r-- 1 root wheel 13064 1 1 2020 magic -rw-r--r-- 1 root wheel 61118 1 1 2020 mime.types drwxr-xr-x 4 root wheel 128 1 1 2020 original drwxr-xr-x 4 root wheel 128 1 1 2020 other drwxr-xr-x 3 root wheel 96 5 6 14:10 users
デフォルトのDocumentRootの場所を設定している箇所
# # 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"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options FollowSymLinks Multiviews MultiviewsMatch Any # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Require all granted </Directory>
デフォルトのDocumentRootの場所
satoshis@iMac ~ % ls -l /Library/WebServer/Documents total 327760 -rw-r--r-- 1 root wheel 3726 1 1 2020 PoweredByMacOSX.gif -rw-r--r-- 1 root wheel 31958 1 1 2020 PoweredByMacOSXLarge.gif -rw-r--r-- 1 root wheel 45 1 1 2020 index.html.en
アクセスログの場所
satoshis@iMac ~ % ls -l /var/log/apache2 total 48 -rw-r--r-- 1 root wheel 18603 5 21 15:21 access_log -rw-r--r-- 1 root wheel 423 5 21 14:25 error_log
created by Rinker
¥3,278
(2025/06/09 23:13:33時点 Amazon調べ-詳細)