Skip to content

Instantly share code, notes, and snippets.

@usmansaleem
Last active February 17, 2019 05:23
Show Gist options
  • Save usmansaleem/3b4097b3298505c10011905beddc0f56 to your computer and use it in GitHub Desktop.
Save usmansaleem/3b4097b3298505c10011905beddc0f56 to your computer and use it in GitHub Desktop.
nginx configuration file. /etc/nginx/sites-available
server {
listen 80;
listen [::]:80;
server_name usmans.info www.usmans.info usman.id.au www.usman.id.au;
root /var/blogboot/www;
location / {
try_files $uri $uri/ @proxy;
}
location @proxy {
include /etc/nginx/proxy_params;
proxy_pass http://localhost:8080/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment