Документ создан: 22.08.2018

nginx как reverse-proxy для обращения к SNI.

Одно из решений такое:

location /our_uri/ {
        proxy_set_header        Host external_server.domain.com;
        proxy_set_header        X-Real-IP $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header        X-Forwarded-Proto $scheme;

        proxy_pass          https://external_server.domain.com;
        proxy_read_timeout  60;
        proxy_ssl_name external_server.domain.com;
        proxy_ssl_server_name on;
        proxy_ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
        proxy_ssl_session_reuse off;
}
 
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki Donate