Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created December 13, 2010 23:25
Show Gist options
  • Select an option

  • Save btbytes/739789 to your computer and use it in GitHub Desktop.

Select an option

Save btbytes/739789 to your computer and use it in GitHub Desktop.

In the interest of allowing you to run nginx without sudo, the default port is set to localhost:8080.

If you want to host pages on your local machine to the public, you should change that to localhost:80, and run sudo nginx. You'll need to turn off any other web servers running port 80, of course.

You can start nginx automatically on login with: cp /usr/local/Cellar/nginx/0.8.53/org.nginx.plist ~/Library/LaunchAgents launchctl load -w ~/Library/LaunchAgents/org.nginx.plist

Warning: /usr/local/sbin is not in your PATH You can amend this by altering your ~/.bashrc file

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