and i recomend you to use client ssl authentification:
my result cfg file is:
<VirtualHost *:443>`
ProxyPreserveHost On
ProxyRequests Off
ServerName domain.com
SSLProxyEngine On
ProxyPass "/" "http://localhost:8123/"
ProxyPassReverse "/" "http://localhost:8123/"
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://localhost:8123%{REQUEST_URI} [P]
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/domain.com/chain.pem
ErrorLog /var/log/apache2/domain.com.error.log
TransferLog /var/log/apache2/domain.com.access.log
SSLVerifyClient require
SSLVerifyDepth 10
SSLCACertificateFile /home/rishat/mySslCerts/clientAuth/ca.cer
</VirtualHost>
<VirtualHost *:80>
ServerName domain.com
ServerSignature Off
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
</VirtualHost>
you’ll need ca and client ssl certs