CryoSparc 4.0.1 doesn't work behind reverse proxy?


we are running CryoSparc in a rather big internal network (actually the whole university) as there is no smaller part we can VPN in.
To secure our login data even in this “kind of” secure network we protected our CryoSparc Master behind a apache reverse proxy (as apache is anyway serving other pages from the master) in 3.1,
This worked great.

However after updating to 4.0.1 this setup has stopped working. We only see little squares for loading, which never ends (“squares of death”).

On the master node itself the local access “Localhost:39000” works fine, so there seems no problem with the installation per se, just some communication errors between the apache2 proxy and the cryosparc server.

Has anyone an idea what’s going wrong here? Or is anyone running CM 4.0.1 successfully after a reverse proxy?


PS thanks foremeost for the brilliant software you are supplying! :+1:

(deleted pieces of an older drafted message which kept stuck :roll_eyes:)

We have it working behind an apache reverse proxy.

I think this information from the ssl.conf file is what you need:

ProxyRequests Off
RewriteEngine on
ProxyPass / http://localhost:39000/
ProxyPassReverse / http://localhost:39000/
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://localhost:39000%{REQUEST_URI} [P]

Thanks, I’ll try that! :+1: Hopefully it solves my problems… It looks slightly different than my configuration…


Hi @gebauer ,

Were you able to load the CryoSPARC application successfully after applying the configuration that @clil16 kindly provided?

- Suhail

Hi @sdawood ,

unfortunately, not.
But I hadn’t time to really check why not, as I am busy teaching.
(Stupid time to try an update, I know :roll_eyes:)