2023-11-23 15:03:23 +02:00
|
|
|
location /opennet/wiki {
|
|
|
|
|
|
|
|
# Domain source
|
|
|
|
proxy_pass https://wiki.opennet.ru/;
|
|
|
|
|
|
|
|
# Include common rules
|
2023-11-23 17:30:03 +02:00
|
|
|
include /etc/nginx/opennet/locations/include/common.conf;
|
2023-11-23 15:03:23 +02:00
|
|
|
|
|
|
|
# Relative paths
|
2023-11-23 18:55:58 +02:00
|
|
|
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/wiki/';
|
2023-11-23 15:03:23 +02:00
|
|
|
sub_filter 'href="/' 'href="http://[$server_addr]/opennet/wiki/';
|
|
|
|
sub_filter 'src="/' 'src="http://[$server_addr]/opennet/wiki/';
|
|
|
|
sub_filter 'data-src="/' 'src="http://[$server_addr]/opennet/wiki/';
|
|
|
|
sub_filter "url('/" "url('http://[$server_addr]/opennet/wiki/";
|
|
|
|
}
|