mirror of
https://github.com/YGGverse/YGGbro.git
synced 2026-04-02 10:35:31 +00:00
prevent out redirects #2
This commit is contained in:
parent
fa7df7d69c
commit
b48f39da4c
3 changed files with 17 additions and 1 deletions
9
nginx/opennet/locations/handle/redirect.conf
Normal file
9
nginx/opennet/locations/handle/redirect.conf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue