Skip to content

Instantly share code, notes, and snippets.

@dotku
Last active July 19, 2019 22:01
Show Gist options
  • Select an option

  • Save dotku/530aa3e9b5ae699e432b3fa121ef958a to your computer and use it in GitHub Desktop.

Select an option

Save dotku/530aa3e9b5ae699e432b3fa121ef958a to your computer and use it in GitHub Desktop.
A note for mac http setup

Common Used Command

// check module status
httpd -M 

// test apache config
apachectl configtest

// restart apache service
sudo apachectl restart
sudo apachectl graceful 

Troubleshooting

// make sure there is no program occupid the 80 port
sudo lsof -i :80 | egrep "PID|LISTEN"

Common Used File and Directory

// startup script
/System/Library/LaunchDaemons/org.apache.httpd.plist

// default configration
/etc/apache2/httpd.conf

// user sites
/etc/apache2/users/jay.lin.conf

Proxy Setting

https://www.digitalocean.com/community/tutorials/how-to-use-apache-as-a-reverse-proxy-with-mod_proxy-on-centos-7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment