From f1181cce7380573b62fcfd9873acfde4d2311daa Mon Sep 17 00:00:00 2001 From: Sushant Bajracharya Date: Sun, 26 Feb 2017 22:23:26 +0545 Subject: [PATCH] Added a / after location /api (#44) --- admin.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin.rst b/admin.rst index f70cf4d66..6b290105e 100644 --- a/admin.rst +++ b/admin.rst @@ -118,10 +118,10 @@ The first step is to create an Nginx configuration file that proxies requests to server { ... # expose to the outside world - location /api { + location /api/ { default_type application/json; proxy_hide_header Content-Location; - add_header Content-Location /api$upstream_http_content_location; + add_header Content-Location /api/$upstream_http_content_location; proxy_set_header Connection ""; proxy_http_version 1.1; proxy_pass http://postgrest/;