Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bhauman
Last active August 29, 2015 14:18
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 bhauman/0f0a2c7dc6dcb40ee800 to your computer and use it in GitHub Desktop.
Save bhauman/0f0a2c7dc6dcb40ee800 to your computer and use it in GitHub Desktop.
nginx proxy
# sudo apt-get install nginx jed
# sudo crontab -e ;; 0 24 * * * service nginx restart >/dev/null 2>&1
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
# multi_accept on;
}
http {
include /etc/nginx/mime.types;
access_log /dev/null;
sendfile on;
tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay off;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
server {
listen 80;
location / {
proxy_pass http://restaurantezite-trial-e-cw62dim5bf.elasticbeanstalk.com;
proxy_set_header X-ORIGINAL-HOST $host;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment