xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Apache

To use the Xpra html5 client from behind an Apache proxy, start an xpra server listening on a TCP port, ie:

xpra start :100 --start-child=xterm --bind-tcp=0.0.0.0:14500

And add the following configuration to apache:

<Location "/xpra">

  RewriteEngine on
  RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
  RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
  RewriteRule .* ws://localhost:14500/%{REQUEST_URI} [P]

  ProxyPass ws://localhost:14500
  ProxyPassReverse ws://localhost:14500

  ProxyPass http://localhost:14500
  ProxyPassReverse http://localhost:14500
</Location>

Make sure to reload the server to update the configuration.

If you are not using the default connect dialog page, you may need to override the "path" option.

Last modified 11 months ago Last modified on 06/18/20 06:16:27