diff --git a/browser_env/nginx.browser-view.conf b/browser_env/nginx.browser-view.conf index 3796234a..6d2ff069 100644 --- a/browser_env/nginx.browser-view.conf +++ b/browser_env/nginx.browser-view.conf @@ -28,11 +28,11 @@ http { proxy_pass http://browser:6080; } - location ~ ^/view/(?[a-f0-9]{16})$ { + location ~ "^/view/(?[a-f0-9]{16})$" { return 302 /view/$owner/vnc.html?path=view/$owner/websockify; } - location ~ ^/view/(?[a-f0-9]{16})/(?.*)$ { + location ~ "^/view/(?[a-f0-9]{16})/(?.*)$" { proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade;