1 server{ 2 listen 80; 3 location /xxx{ 4 proxy_pass https://xxxx?$args 5 proxy_set_header Host $http_host; 6 proxy_set_header X-Real-IP $remote_addr; 7 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 8 proxy_set_header S-SSL-serial $ssl_client_serial; 9 proxy_set_header cert-subject $ssl_client_s_dn 10 proxy_set_session_reuse on; 11 } 12 }
server{ listen 80; location /xxx{ proxy_pass http://xxxx?$args proxy_redirect off; } }