From 3fec982574c710525d06a367945c6346962b9605 Mon Sep 17 00:00:00 2001 From: Sebastian Korotkiewicz Date: Wed, 7 Dec 2016 22:56:51 +0100 Subject: [PATCH] Create apache.config --- apache.config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 apache.config diff --git a/apache.config b/apache.config new file mode 100644 index 0000000..78d8fdc --- /dev/null +++ b/apache.config @@ -0,0 +1,14 @@ + + ServerName talk.example.com + ServerAlias talk.example.com www.talk.example.com + ServerAdmin admin@example.com + + RewriteEngine On + RewriteCond %{HTTP:Upgrade} =websocket [NC] + RewriteRule /(.*) ws://localhost:9000/$1 [P,L] + RewriteCond %{HTTP:Upgrade} !=websocket [NC] + RewriteRule /(.*) http://localhost:9000/$1 [P,L] + + ProxyPassReverse / http://localhost:9000/ + +