mirror of
https://github.com/YGGverse/YGGbro.git
synced 2026-03-31 17:45:36 +00:00
prevent out redirects #2
This commit is contained in:
parent
fa7df7d69c
commit
b48f39da4c
3 changed files with 17 additions and 1 deletions
|
|
@ -6,6 +6,10 @@
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
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;
|
||||
|
||||
# Replace all matches
|
||||
sub_filter_once off;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue