Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blog:plex_virtual_hosting [2014/07/28 10:34] – [PLEX virtual host configuration] brett | blog:plex_virtual_hosting [2019/12/13 21:18] (current) – [My solution] brett | ||
---|---|---|---|
Line 14: | Line 14: | ||
This was pretty damn close: http:// | This was pretty damn close: http:// | ||
- | However it did not completely work and required a small adjustment | + | However it did not completely work and required a small adjustment |
===== My solution ===== | ===== My solution ===== | ||
Line 41: | Line 41: | ||
ProxyRequests off | ProxyRequests off | ||
ProxyPreserveHost On | ProxyPreserveHost On | ||
+ | ProxyPass / ws:// | ||
+ | ProxyPassReverse / ws:// | ||
+ | ProxyPass / wss:// | ||
+ | ProxyPassReverse / wss:// | ||
ProxyPass / http:// | ProxyPass / http:// | ||
ProxyPassReverse / http:// | ProxyPassReverse / http:// | ||
Line 55: | Line 59: | ||
The crucial piece of the puzzle is the QUERY_STRING conditional. | The crucial piece of the puzzle is the QUERY_STRING conditional. | ||
+ | The inclusion of the WebSocket proxying is also crucial for activity feedback. | ||
+ | |||
+ | As I was running CentOS 6.5 x64 which only has apache 2.2.15 I had to compile this module up myself by following the instructions here: http:// | ||
+ | |||
+ | For your convenience the precompiled module {{: | ||
+ | |||
+ | Edit apache configuration to support websockets | ||
+ | < | ||
+ | # vi / | ||
+ | LoadModule proxy_wstunnel_module modules/ | ||
+ | </ | ||
+ | |||
+ | ==== CentOS 7 ==== | ||
+ | * Disable SELINUX | ||
+ | * Punch hole in firewall (or disable easier). | ||
+ | * No need to install mod_proxy_wstunnel. | ||
===== How it was debugged ===== | ===== How it was debugged ===== | ||