aaPanel_Kern it's not work. im using this configuration
<VirtualHost *:80>
ServerName app.mydomain.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =app.mydomain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerName app.mydomain.com
ProxyPreserveHost on
RewriteEngine on
RewriteCond ${HTTP:Upgrade} websocket [NC]
RewriteCond ${HTTP:Connection} upgrade [NC]
RewriteRule .* "wss://app.mydomain.com/$1" [P,L,END]
ProxyPass /app/ ws://10.160.x.x:6001/app/
ProxyPassReverse /app/ ws://10.160.x.x:6001/app/
ProxyPreserveHost on
ProxyPass / http://10.160.x.x:8030/
ProxyPassReverse / http://10.160.x.x:8030/
SSLCertificateFile /etc/letsencrypt/live/app.mydomain.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/app.mydomain.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/app.mydomain.com/chain.pem
</VirtualHost>
source: https://stackoverflow.com/a/70087554
unfornutalley, i'm not lucky, after update, my service not work again. my config is lost,