Raymond Weitekamp commited on
Commit
973aa28
·
1 Parent(s): fb3e2ba

Update Nginx config to rewrite /viewer/ to /viewer

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -100,8 +100,11 @@ http {\n\
100
  proxy_set_header X-Forwarded-Proto $scheme;\n\
101
  }\n\
102
  \n\
103
- # Viewer route - pass the full URI directly to the viewer upstream\n\
104
  location /viewer/ {\n\
 
 
 
105
  proxy_pass http://viewer;\n\
106
  proxy_http_version 1.1;\n\
107
  proxy_set_header Upgrade $http_upgrade;\n\
 
100
  proxy_set_header X-Forwarded-Proto $scheme;\n\
101
  }\n\
102
  \n\
103
+ # Viewer route - pass the full URI directly to the viewer upstream with rewriting for exact /viewer/\n\
104
  location /viewer/ {\n\
105
+ if ($request_uri = "/viewer/") {\n\
106
+ rewrite ^ /viewer break;\n\
107
+ }\n\
108
  proxy_pass http://viewer;\n\
109
  proxy_http_version 1.1;\n\
110
  proxy_set_header Upgrade $http_upgrade;\n\