Tag: Homebrew/apache
brew tap homebrew/apache
brew install httpd22
To have launchd start httpd22 at login: ln -sfv /usr/local/opt/httpd22/*.plist ~/Library/LaunchAgents Then to load httpd22 now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.httpd22.plist
$ brew tap homebrew/dupes $ brew install httpd
To have launchd start httpd at login: ln -sfv /usr/local/opt/httpd/*.plist ~/Library/LaunchAgents Then to load httpd now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist
sudo cp /usr/local/opt/httpd22/homebrew.mxcl.httpd22.plist /Library/LaunchDaemons
User sora Group staff
User www Group www
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.httpd22.plist
※ちなみに「sudo brew services start httpd」でいけそうに思えるがうまくいかない。
# User home directories Include /usr/local/etc/apache2/2.2/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 <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all </LimitExcept> </Directory>