mirror of
https://github.com/YGGverse/YGGbro.git
synced 2026-04-02 18:45:31 +00:00
refactor opennet conf
This commit is contained in:
parent
1872672f64
commit
b24b24a672
18 changed files with 46 additions and 40 deletions
|
|
@ -4,7 +4,7 @@ location /opennet/bsd {
|
|||
proxy_pass https://bsd.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/bsd/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/cisco {
|
|||
proxy_pass https://cisco.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/cisco/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/grab {
|
|||
proxy_pass https://grab.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/grab/';
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
# Prevent out redirects (solution for issue #2)
|
||||
|
||||
location @opennet_locations_handle_redirect {
|
||||
|
||||
set $original_uri $uri;
|
||||
set $orig_loc $upstream_http_location;
|
||||
|
||||
proxy_pass $orig_loc;
|
||||
}
|
||||
|
|
@ -8,7 +8,7 @@ proxy_set_header X-Real-IP $remote_addr;
|
|||
|
||||
# Prevent out redirects (issue #2)
|
||||
proxy_intercept_errors on;
|
||||
error_page 301 302 307 = @opennet_locations_handle_redirect;
|
||||
error_page 301 302 307 = @yggbro_nginx_opennet_handles_redirect;
|
||||
|
||||
# Replace all matches
|
||||
sub_filter_once off;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/linux {
|
|||
proxy_pass https://linux.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/linux/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/m {
|
|||
proxy_pass https://m.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/m/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/mobile {
|
|||
proxy_pass https://mobile.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/mobile/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/palm {
|
|||
proxy_pass https://palm.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/palm/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/security {
|
|||
proxy_pass https://security.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/security/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/solaris {
|
|||
proxy_pass https://solaris.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/solaris/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/web {
|
|||
proxy_pass https://web.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/web/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/wiki {
|
|||
proxy_pass https://wiki.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/wiki/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet {
|
|||
proxy_pass https://opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/opennet/';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ location /opennet/www {
|
|||
proxy_pass https://www.opennet.ru/;
|
||||
|
||||
# Include common rules
|
||||
include /etc/nginx/opennet/locations/include/common.conf;
|
||||
include /etc/yggbro/nginx/opennet/locations/include/common.conf;
|
||||
|
||||
# Relative paths
|
||||
sub_filter 'action="/' 'action="http://[$server_addr]/opennet/www/';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue