w
This commit is contained in:
@@ -74,7 +74,8 @@ server {
|
||||
# https://stackoverflow.com/questions/53353572/proxy-pass-cannot-have-uri-part-in-location-given-by-regular-expression
|
||||
|
||||
location ~ ^/([A-Za-z0-9]+) {
|
||||
rewrite ^/([A-Za-z0-9]+) /rpc/fwd?p_shortcode=$1&p_dbg=true break;
|
||||
# rewrite ^/([A-Za-z0-9]+) /rpc/fwd?p_shortcode=$1&p_dbg=true break;
|
||||
rewrite ^/([A-Za-z0-9]+) /rpc/fwd break;
|
||||
default_type application/json;
|
||||
proxy_hide_header Content-Location;
|
||||
add_header Content-Location /rpc/$upstream_http_content_location;
|
||||
|
||||
Reference in New Issue
Block a user