Tag: Homebrew/apache
$ brew tap homebrew/dupes $ brew install httpd
You should reload httpd:
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist
sudo cd /Library/LaunchAgents sudo ln -s /Library/LaunchAgents/homebrew.mxcl.httpd.plist sudo chown root:wheel homebrew.mxcl.httpd.plist sudo launchctl load -w /Library/LaunchAgents/homebrew.mxcl.httpd.plist
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist
sudo brew services start httpd
sudo launchctl load -w /Library/LaunchAgents/homebrew.mxcl.httpd.plist
※httpd log and run directories not being created · Issue #119 · Homebrew/homebrew-dupes · GitHubに、run、logディレクトリが作られず起動できないエラーが報告されている。手動でディレクトリを作らないとだめかも(と思ったけど、rootで起動すれば大丈夫かも。場所は/usr/local/var/apache2/log)。
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
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>