Welcome! Log In Create A New Profile

Advanced

can nginx work as forward proxy for https traffic ?

Posted by jack.tai 
can nginx work as forward proxy for https traffic ?
March 31, 2024 11:43PM
Hi Everyone

Good morning.

Is possible nginx use to process forward proxy traffic for HTTPS destination ?
I am having a requirement which is proxy users are point to nginx and proxy user require access to https site .

Proxy user --> nginx --> application server

Based on my testing ,

1.) if proxy users are send request to HTTP destination are no issue ( traffic process success) .

== traffic process failed for HTTP traffic ==
upstream backend {
zone backend 64k;
server 192.168.128.61:443;
}

server {
listen 80;

location / {
proxy_pass https://backend/;
}

2.) But when proxy users are send request to HTTPS destination , request will unable to proceed ( traffic process failed)
== traffic process success for HTTP traffic==
upstream backend {
zone backend 64k;
server 192.168.128.61:80;
}

server {
listen 80;

location / {
proxy_pass http://backend/;
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
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