server {
listen 8080;
server_name my-server.ru ;
location /auth {
proxy_pass http://auth_service:8081;
....
location /api {
proxy_pass http://api_service:8082;
for i in `find $1 -type f`
do
# Получаем кодировку очередного файла
cod=`enca -L ru $i`
location / {
proxy_pass http://server/;
proxy_intercept_errors on;
proxy_redirect off;
error_page 502 /502.html;
}
location /502.html {
root /path/to/directory/with/error/pages;
}
Split-Tunneling
With split-tunneling the clients will only send traffic for specific destination subnets to the gateway. For both protocol versions split-tunneling is easy to deploy f traffic selectors (TS) can freely be configured on both peers. In that case you’d simply use specific values for the local_ts and remote_ts options.