Collection of web proxies with configuration examples for Yggdrasil
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
location /opennet/www {
|
|
|
|
|
|
|
|
# Domain source
|
|
|
|
proxy_pass https://www.opennet.ru/;
|
|
|
|
|
|
|
|
# Include common rules
|
|
|
|
include /etc/nginx/opennet/locations/include/common.conf;
|
|
|
|
|
|
|
|
# Relative paths
|
|
|
|
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/www/';
|
|
|
|
sub_filter 'href="/' 'href="http://[$server_addr]/opennet/www/';
|
|
|
|
sub_filter 'src="/' 'src="http://[$server_addr]/opennet/www/';
|
|
|
|
sub_filter 'data-src="/' 'src="http://[$server_addr]/opennet/www/';
|
|
|
|
sub_filter "url('/" "url('http://[$server_addr]/opennet/www/";
|
|
|
|
}
|