WebSockets from ArcGIS Notebook

450
3
Jump to solution
03-29-2019 09:29 AM
ThomasLARGILLIER
New Contributor

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 ?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
BillMajor
Esri Contributor

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?

View solution in original post

0 Kudos
3 Replies
BillMajor
Esri Contributor

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?

0 Kudos
MarcLE_MOIGNE1
Esri Contributor

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.

0 Kudos
Suleyman-Arslan
Occasional Contributor

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;
}

 

0 Kudos