Hi,
We try to install ArcGIS Notebooks on ArcGIS Enterprise 10.7 with Centos servers. No problem during the setup and the post-install configuration.
ArcGIS Notebooks is set behind an HTTPD Reverse Proxy.
When a new notebook is launch, the application failed to connect to the websocket.
Do you have a typical configuration to configure the WebSocket from ArcGIS Notebook on a different port ?
Solved! Go to Solution.
Hi Thomas. You will need to also make sure Apache httpd proxies WS/WSS calls through. Let me know if that makes sense. What version of httpd are you using?
Hi Thomas. You will need to also make sure Apache httpd proxies WS/WSS calls through. Let me know if that makes sense. What version of httpd are you using?
Hi,
I add to add Rewrite rules in httpd conf.
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* wss://example.com:8443%{REQUEST_URI}
Now it's working. Thanks.
Hi,
If you are using Nginx as reverse proxy you may use bellow code in your nginx configuration.
location /notebook {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass https://xxx:443;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}