Skip to content

Instantly share code, notes, and snippets.

@sonukapoor
Created March 19, 2018 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonukapoor/562a6926d0f185fa22f6085dff63b0b6 to your computer and use it in GitHub Desktop.
Save sonukapoor/562a6926d0f185fa22f6085dff63b0b6 to your computer and use it in GitHub Desktop.
nginx commands
-- nginx config
sudo vi /etc/nginx/nginx.conf
-- allow nginx communication with other ports
sudo setsebool -P httpd_can_network_connect 1
-- test nginx config
sudo nginx -t
-- check nginx log
tail -30 /var/log/nginx/error.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment