Setup reverse proxy on OpenLiteSpeed (no console)

#1
Hi at all,
I'm trying to add reverse proxy to my virtual host, but I'm facing some issues with the configuration.
I read several guides about that, but they are all for the console version (the one that runs at port 7080). I can't follow these tutorials because on directadmin the console is read-only, so I have to on the manual way.

On my old server running directadmin on apache I just insert this and it works.
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:5000/
ProxyPassReverse / http://127.0.0.1:5000/
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule /(.*) ws://127.0.0.1:5000/$1 [P]

When I try to add it on my openlitespeed server in "custom httpd config" I have this errors :
[PlainConf] [virtualhost:domain.com-80] Not support [proxypass / http://127.0.0.1:5000/] in file /usr/local/directadmin/data/users/admin/openlitespeed.conf:13
[PlainConf] [virtualhost:domain.com-80] Not support [proxypassreverse / http://127.0.0.1:5000/] in file /usr/local/directadmin/data/users/admin/openlitespeed.conf:14
[PlainConf] [virtualhost:domain.com-80] Not support [rewriteengine on] in file /usr/local/directadmin/data/users/admin/openlitespeed.conf:15
[PlainConf] [virtualhost:domain.com-80] Not support [rewritecond %{HTTP:UPGRADE} ^WebSocket$ [NC]] in file /usr/local/directadmin/data/users/admin/openlitespeed.conf:16
[PlainConf] [virtualhost:domain.com-80] Not support [rewritecond %{HTTP:CONNECTION} Upgrade$ [NC]] in file /usr/local/directadmin/data/users/admin/openlitespeed.conf:17
[PlainConf] [virtualhost:domain.com-80] Not support [rewriterule /(.*) ws://127.0.0.1:5000/$1 [P]] in file /usr/local/directadmin/data/users/admin/openlitespeed.conf:18

Like all my config is not supported on openlitespeed.

Can you give me an hint on how to setup the reverse proxy server on openlitespeed?
 
Top