• OKMScanner and Apache Reverse Proxy

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #54205  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?

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.