Last active
February 18, 2019 13:43
-
-
Save ItsOnlyBinary/8e6c3075ce0a440093f211b4ecbf2698 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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