Category Archives: How-To’s

Nginx proxy_pass

From synchtube.itunix.eu:1337 to synchtube.itunix.eu

  1. server {
  2. #  listen      66.225.195.83;
  3.    server_name synchtube.itunix.eu;
  4.    access_log  /var/log/nginx/access.log;
  5.    error_log   /var/log/nginx/error.log;
  6.  
  7.    location / {
  8.         proxy_pass  http://synchtube.itunix.eu:1337;
  9.         proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
  10.         proxy_redirect off;
  11.         proxy_buffering off;
  12.         proxy_set_header        Host            static.example.com;
  13.         proxy_set_header        X-Real-IP       $remote_addr;
  14.         proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
  15.     }
  16. }