&tag(Homebrew/httpd);
brew install httpd --with-privileged-ports sudo brew services start homebrew/apache/httpd
<IfModule unixd_module> # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. # User sora Group staff </IfModule>
LoadModule userdir_module lib/httpd/modules/mod_userdir.so Include /usr/local/etc/httpd/extra/httpd-userdir.conf
UserDir Sites
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory "/Users/*/Sites">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>
**mod_rewriteを有効化 [#u5277d8e]
-以下の設定をコメントアウトする
LoadModule rewrite_module libexec/mod_rewrite.so