xpra icon
Bug tracker and wiki

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


Changes between Initial Version and Version 1 of Apache


Ignore:
Timestamp:
06/18/20 06:16:27 (15 months ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Apache

    v1 v1  
     1{{{#!div class="box"
     2= Apache =
     3
     4To use the Xpra [/wiki/Clients/HTML5 html5] client from behind an Apache proxy, start an xpra server listening on a TCP port, ie:
     5{{{
     6xpra start :100 --start-child=xterm --bind-tcp=0.0.0.0:14500
     7}}}
     8
     9And add the following configuration to apache:
     10{{{
     11<Location "/xpra">
     12
     13  RewriteEngine on
     14  RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
     15  RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
     16  RewriteRule .* ws://localhost:14500/%{REQUEST_URI} [P]
     17
     18  ProxyPass ws://localhost:14500
     19  ProxyPassReverse ws://localhost:14500
     20
     21  ProxyPass http://localhost:14500
     22  ProxyPassReverse http://localhost:14500
     23</Location>
     24}}}
     25
     26Make sure to reload the server to update the configuration.
     27
     28If you are not using the default connect dialog page, you may need to override the "path" option.
     29}}}