Configurare VirtualMin Proxy
Pentru partea de NON-SSL
VirtualMin -> Web Configuration -> Configure Apache Website -> Edit Directive
DocumentRoot /home/zali/public_html
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3003/
ProxyPassReverse / http://127.0.0.1:3003/
# WebSockets
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:3003/$1 [P,L]
Pentru partea de SSL
VirtualMin -> Web Configuration -> Configure Apache SSL Website -> Edit Directive
DocumentRoot /home/zali/public_html
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3003/
ProxyPassReverse / http://127.0.0.1:3003/
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:3003/$1 [P,L]
la final
sudo systemctl restart apache2
si porneste serverul