Welcome! Log In Create A New Profile

Advanced

Reverse Proxy And Use Proxy bypass

Posted by ramin_malek 
Reverse Proxy And Use Proxy bypass
April 04, 2019 01:45AM
Hi Dear Friend I config nginx Reverse cache and use proxy bypass and use upstream proxy that foreard all Request to

upstraem http proxy i config file that

events{ }
http {

upstream corporate_proxy {
server 127.0.0.1:2020;
}

server {
listen 80;
server_name classen.abc.lan;
location / {
proxy_pass_header on;
proxy_set_header Host "registry.npmjs.org";
proxy_pass http://127.0.0.1:2020;
proxy_cache_valid 200 302 365d;
proxy_cache_valid 404 1m;
sub_filter 'registry.npmjs.org' 'classen.abc.lan';
sub_filter_once off;
sub_filter_types application/json;
}
}
}




And my topology is attach

but i get bad gateway on nginx


Please Help me
Attachments:
open | download - nginx.jpg (31.2 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 105
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready