Last active
September 7, 2018 04:44
-
-
Save ledongthuc/8770204fcf8b703ba1a298a50085efaf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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