Skip to content

Instantly share code, notes, and snippets.

@AkarshSatija
Created May 8, 2015 06:39
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 AkarshSatija/085959f1fb64080498e4 to your computer and use it in GitHub Desktop.
Save AkarshSatija/085959f1fb64080498e4 to your computer and use it in GitHub Desktop.
nginx config
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
-----
server {
listen 80;
server_name 52.74.116.235;
access_log /var/log/nginx/domain1.access.log;
client_max_body_size 100M;
location / {
# proxy_pass http://127.0.0.1:90/;
proxy_pass http://127.0.0.1:3000/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment