Created
May 8, 2015 06:39
-
-
Save AkarshSatija/085959f1fb64080498e4 to your computer and use it in GitHub Desktop.
nginx config
This file contains 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
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