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.
server {
listen 80;
server_name example.com www.example.com;
root /var/www/example.com;
}
server {
listen 80;
server_name *.example.com;
root /var/www/$host;
}