Skip to content

Instantly share code, notes, and snippets.

@ledongthuc
Last active September 7, 2018 04:44
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 ledongthuc/8770204fcf8b703ba1a298a50085efaf to your computer and use it in GitHub Desktop.
Save ledongthuc/8770204fcf8b703ba1a298a50085efaf to your computer and use it in GitHub Desktop.
# NGINX
sudo yum install nginx;
sudo setsebool -P httpd_can_network_connect 1;
sudo bash -c "cat <<EOT > /etc/nginx/sites-enabled/default.conf
server {
server_name thuc.com.vn;
listen 80;
location / {
proxy_pass http://localhost:8080;
}
}
EOT"
sudo service nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment