-
Notifications
You must be signed in to change notification settings - Fork 185
Reverse proxy (Apache)
arstar edited this page Dec 20, 2022
·
2 revisions
If you want to run Scribble.rs over Apache you have to setup a reverse proxy that supports websockets. Make sure you have the following modules enabled:
- rewrite
- proxy
- proxy_http
- proxy_wstunnel
Within you virtual host add the below configuration, this will allow both normal and websocket traffic via the root of the virtual host.
RewriteEngine on
ProxyPass / http://localhost:8080/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://localhost:8080/" [P,L]
This will serve Scribble.rs from the root of the virtual host.