Merge pull request #182 from ssb-ngi-pointer/fix-alias-json-endpoint
Fix nginx.cfg for alias resolve when using JSON
This commit is contained in:
commit
e355036efa
|
@ -40,7 +40,9 @@ server {
|
|||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://localhost:8899/alias/$alias;
|
||||
# "rewrite" requests with subdomains to the non-wildcard url for alias resolving
|
||||
# $is_args$args pass on ?encoding=json if present
|
||||
proxy_pass http://localhost:8899/alias/$alias$is_args$args;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
|
Loading…
Reference in New Issue