Welcome! Log In Create A New Profile

Advanced

how to configure proxy server for iis

Posted by rajemessage 
how to configure proxy server for iis
April 25, 2020 04:12AM
hi,
i have configurd my website on iis(localhost:8087

i want to use nginx to call my site.

so this is how i have configured nginx.conf file
( in two diffrent way pls tel me which one is better)
and also tel me it any thing is worng.

location /ptk/jbl1/ {

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cookie_path ~*^/.* /;
proxy_read_timeout 600;
client_max_body_size 500M;
proxy_pass http://localhost:8076/;
}




location /ptk/jbl12/ {


proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_pass http://127.0.0.1:8076/;
}

yours sinclerey
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready