VMware Horizon Community
Vizibirka
Contributor
Contributor

VDM + Apache Reverse Proxy

I'm trying to get work the vdm server from the internet via reverse proxy.

I think the proxy setup are correct, because I get the login page and if the activeX was not installed, it download and install. But when I try to get my desktop I get the following message:

"A connection to the VDM server http://vdi.bull.hu:80 could not established. The tunnel initiation failed." (I forget mention the previous message were given when I tried http. I got the same msg when I tried via https.)

I write the proxy's fqdn into the properties.locked file but not helped, problem remaind the same.

I think the root of problem is the connection method used by the client. It could't pass throught proxy to the vdm server.

If any ideas pls write here.

Btw: anyone know where can I find the client's log?

Network layout:

Client@internet >>apache with mod_proxy (used in reverse proxy mode)>>VMD server

Tags (4)
0 Kudos
1 Reply
SaturnoTech
Contributor
Contributor

The solution is to also create a virtualhost for port 22443, in the path /d, and point it to wss://{ipbackend}, together with the configuration of the certificates, as in the case of the virtualhost for port 443. 
This way the connection with the secure websocket will work, on port 22443, and will open the published application or desktop, without problems.
I leave the example of the complete configuration, tested and in production:


<VirtualHost *:80>

ServerName exampledomain.com
Redirect permanent / https://exampledomain.com
</VirtualHost>

 

<VirtualHost *:443>

ServerName exampledomain.com
ProxyPreserveHost on
ProxyPass / https://{ip-backserver}/
ProxyPassReverse / https://{ip-backserver}/


SSLEngine on
# certificados
SSLCertificateFile /cert/ssl-cert.crt
SSLCertificateKeyFile /cert/ssl-cert.key
SSLCertificateChainFile /cert/ssl-cert-intermediate.crt

ProxyRequests off
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off

 

</VirtualHost>


<VirtualHost *:22443>

ServerName exampledomain.com
ProxyPreserveHost off
ProxyPass /d wss://{ip-backserver}:22443/d/$1
ProxyPassReverse /d wss://{ip-backserver}:22443/d/$1


SSLEngine on
# certificados
SSLCertificateFile /cert/ssl-cert.crt
SSLCertificateKeyFile /cert/ssl-cert.key
SSLCertificateChainFile /cert/ssl-cert-intermediate.crt

ProxyRequests off
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off

 

</VirtualHost>

0 Kudos