Skip to content

Instantly share code, notes, and snippets.

@ItsOnlyBinary
Last active February 18, 2019 13:43
Show Gist options
  • Save ItsOnlyBinary/8e6c3075ce0a440093f211b4ecbf2698 to your computer and use it in GitHub Desktop.
Save ItsOnlyBinary/8e6c3075ce0a440093f211b4ecbf2698 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName kiwiirc.itsonlybinary.com
ServerAdmin [email protected]
# Kiwi IRC client files are located here
DocumentRoot /usr/share/kiwiirc
DirectoryIndex index.html
# Reverse proxy websocket connections
# requires: a2enmod rewrite proxy proxy_wstunnel
RewriteEngine On
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteRule .* ws://localhost:7778%{REQUEST_URI} [P,QSA,L]
# Reverse proxy http connections
# requires: a2enmod proxy proxy_http
ProxyVia On
ProxyRequests Off
ProxyPass /webirc/ http://localhost:7778/webirc/
ProxyPassReverse /webirc/ http://localhost:7778/webirc/
ProxyPreserveHost on
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment