SHARE
TWEET

Nginx Config Example RP

a guest Jan 16th, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80 default_server;
  3.     listen [::]:80 default_server;
  4.  
  5.     root /var/www/html;
  6.  
  7.     index index.html index.htm index.nginx-debian.html;
  8.  
  9.     server_name ourdomainthatwillproxy.com;
  10.  
  11.     location / {
  12.             proxy_pass https://40.69.210.172/;
  13.             proxy_set_header Host magazinesubscriptions.co.uk;
  14.             proxy_set_header X-Forwarded-Host $server_name;
  15.             proxy_set_header X-Real-IP $remote_addr;
  16.             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17.             proxy_set_header X-Forwarded-Ssl on;
  18.             proxy_set_header X-Forwarded-Proto $scheme;
  19.             proxy_read_timeout  90;
  20.             proxy_redirect http://40.69.210.172 https://$host;
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top