mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
apache reverse proxy hast do handle websocket connection other than simple http requests
parent
b18b0c4048
commit
3a02ef89a4
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,7 @@ wekandb:
|
|||
|
||||
## 3. Configure Apache as a front-end proxy
|
||||
|
||||
* Enable Mod_Proxy: `sudo a2enmod proxy proxy_http` then restart Apache `service apache2 restart`
|
||||
* Enable Mod_Proxy: `sudo a2enmod proxy proxy_http proxy_wstunnel` then restart Apache `service apache2 restart`
|
||||
* Configure your virtual host (vhost)
|
||||
|
||||
Let say you have the following "mytodo.org" vhost configured in `/etc/apache2/sites-available/mytodo.org.conf`:
|
||||
|
@ -68,6 +68,7 @@ Let say you have the following "mytodo.org" vhost configured in `/etc/apache2/si
|
|||
Add the following lines at the end just before `</VirtualHost>`:
|
||||
|
||||
```ApacheConf
|
||||
ProxyPassMatch "^/(sockjs\/.*\/websocket)$" "ws://127.0.0.1:8081/$1"
|
||||
ProxyPass "/" "http://127.0.0.1:8081/"
|
||||
ProxyPassReverse "/" "http://127.0.0.1:8081/"
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue