Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created April 11, 2019 23:31
Show Gist options
  • Select an option

  • Save 100daysofdevops/38fb17d4a565d0f0f17e164b55afe9d6 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/38fb17d4a565d0f0f17e164b55afe9d6 to your computer and use it in GitHub Desktop.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
proxy_pass http://127.0.0.1:8080; <-----Add this entry
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment