Get the App
SLTechnology News&Howtos  ›  Network Security  › 

With regard to proxy forwarding, it applies to the case of one https certificate and multiple sites

Shulou Source: shulou.com Published: 2022-06-01 07:26:38 09月28日 Update

Carry a proxy server

Add the specified variable value such as serverid=x in the passing parameter, and add the mapping of this variable in the nginx configuration

Map $arg_serverid $source {

X ip

}

Map $arg_serverid $myhost {

X host

}

Add location configuration to server

Location / {

Proxy_set_header Host $myhost

Proxy_set_header X-Real-IP $remote_addr

Proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for

Proxy_ignore_headers Cache-Control Expires Set-Cookie X-Accel-Expires

Proxy_pass http://$source;

}

Tags: Configuration agents parameters variables servers values services multiple cases sites certificates Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Microsoft vpn MariaDB macOS