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