Guest User

Untitled

a guest
Feb 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
  2. cd /usr/local/etc/nginx/sites-enabled
  3. ln -s ../sites-available/default.conf
  4. ln -s ../sites-available/default-ssl.conf
  5.  
  6. File locations:
  7.  
  8. * `nginx.conf` to `/usr/local/etc/nginx/`
  9. * `default.conf` and `default-ssl.conf` to `/usr/local/etc/nginx/sites-available`
  10. * `homebrew.mxcl.nginx.plist` to `/Library/LaunchDaemons/`
  11.  
  12. Nginx manipulations
  13.  
  14. * `sudo nginx -t` validate nginx config
  15. * `sudo nginx -s reload` restart nginx
Add Comment
Please, Sign In to add comment