Page 1 of 1

OKMScanner and Apache Reverse Proxy

PostPosted:Fri May 19, 2023 11:50 am
by Swallowtail
I have OpenKM setup behind an Apache reverse proxy. I can connect to and use OpenKM fine through the reverse proxy.

The OpenKM host is emp95; dms is a CNAME to host emp96, which is the reverse proxy.

Using OKMScanner I can connect to my Tomcat OpenKM host directly:

http://emp95.simonandkate.lan:8080/OpenKM/ --> Test --> Connection successfully established - OpenKM Community build (a3587ce)

But if I point OKMScanner at my reverse proxy host using https it fails:

https://dms.simonandkate.lan/OpenKM/ --> Test --> Connection test failed!!!

My reverse proxy is very simply setup:
Code: Select all
<VirtualHost 192.168.1.240:80>
    ServerName dms.simonandkate.lan
    Redirect permanent / https://dms.simonandkate.lan/
</VirtualHost>

<VirtualHost 192.168.1.240:443>
    ServerName dms.simonandkate.lan
    RedirectMatch ^/$ /OpenKM

    ProxyPass /OpenKM ajp://emp95.simonandkate.lan:8009/OpenKM keepalive=On
    ProxyPassReverse /OpenKM http://emp95.simonandkate.lan:8080/

    ErrorLog /var/log/httpd/openkm-error.log
    CustomLog /var/log/httpd/openkm-access.log combined
    SSLCertificateFile      /etc/pki/tls/certs/simonandkate.lan-cert.pem
    SSLCertificateKeyFile   /etc/pki/tls/private/simonandkate.lan-key.pem
</VirtualHost>
Ports 8009 and 8080 are both open to the test PC running OKMScanner and the reverse proxy host emp96.

Does OKMScanner not support https? Or what else am I missing?

Re: OKMScanner and Apache Reverse Proxy

PostPosted:Fri May 26, 2023 11:54 am
by jllort
That's because SSL, what version of the Scanner are you using?