Advertisement
Guest User

nginx.conf

a guest
Nov 13th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.36 KB | None | 0 0
  1. location ~ '^/prefix/(path)$' {
  2.         if ($args ~* (.*)(\|)(.*)) { set $args $1%7C$3; }
  3.  
  4.         if ($args ~* (.*)(\{)(.*)) { set $args $1%7B$3; }
  5.         ... repeating a few times ...
  6.  
  7.         if ($args ~* (.*)(\})(.*)) { set $args $1%7D$3; }
  8.         ... repeating a few times ...
  9.  
  10.         rewrite '^/prefix/(path)$' {{ host }}/path/$1 redirect;
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement