Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 8080;
- server_name xxxxx.com xxxx.com;
- #charset koi8-r;
- access_log logs/xxxx.access.log ;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- # Let the Set-Cookie header through.
- proxy_pass_header Set-Cookie;
- location / {
- proxy_pass http://backend;
- #index index.php index.html index.htm;
- sub_filter_once off;
- # sub_filter_types text/html;
- sub_filter "http://192.168.xxx.113" "http://xxxx.com:8080";
- proxy_http_version 1.1;
- proxy_set_header Connection "";
- }
- #error_page 404 /404.html;
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- }
- upstream backend {
- # Defines backends.
- # Extracting here makes it easier to load balance
- # in the future. Needs to be specific IP as Plesk
- # doesn't have Apache listening on localhost.
- ip_hash;
- server 192.168.137.xxx:80; # IP goes here.
- keepalive 32;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement