In my Apache 2.4 vhost I'm trying to get all https:// traffic to carry on to port 443, but all ws:// traffic to forward onto ws://*:6969.
Eg:
https://example.com/index would just go to https://example.com/index:443 as normal.
ws://example.com/anypathhere/ would be forwarded to ws://example.com/anypathhere:6969
So far I've tried the commented out values in the vhost.
<VirtualHost *:443> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/ca.crt SSLCertificateKeyFile /etc/pki/tls/private/ca.key DocumentRoot /var/www/html/ RewriteOptions Inherit AccessFileName .htaccess AllowEncodedSlashes NoDecode DirectoryIndex disabled <Directory /var/www/html> Options +FollowSymlinks RewriteEngine On AllowOverride All Require all granted RewriteCond %{REQUEST_FILENAME} -d RewriteRule .* %{REQUEST_URI}index.php [L] </Directory> ServerName localhost.localdomain #ProxyPreserveHost On #ProxyRequests Off #ProxyPassMatch / ws://192.16.4.177:6969/ retry=0 #ProxyPassReverse ws:// ws://192.16.4.177:6969/ #ProxyPass ws:// ws://192.16.4.177:6969/ #RewriteEngine On #RewriteRule ws:// ws://%{HTTP_HOST}/$1:6969 [NC,R=301,L] All of these result in
Firefox can't establish a connection to the server at ws://192.16.4.177:443 or a 400 error.