• Integrate with Apache on different box

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
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.
 #9568  by oxyis
 
I have installed OpenKM on a machine on my internal lan, it's work ok on 10.0.0.2:8080.

Next I want to make it available on my domain via an integration with Apache running on another box connect to Internet. Giving me access using https://domain.com/OpenKM/. I have configured the HTTPS virtualhost with the following ProxyPass setup:
Code: Select all
        ProxyPass /OpenKM/ http://10.0.0.2:8080/OpenKM/
        ProxyPassReverse /OpenKM/ http://10.0.0.2:8080/OpenKM/

        RewriteEngine on
        RewriteCond %{REQUEST_URI} /OpenKM*
        RewriteRule ^(/.*)$ http://10.0.0.2:8080/$1 [P]
        ProxyPassReverse / http://10.0.0.2:8080/
At first everything seems to be working, as OpenKM login screen pops up when going to https://domain.com/OpenKM/, but when trying to login I just get the folloing:
Code: Select all
  The connection to the server was reset while the page was loading.
And the browser has redirect to the following URL:
Code: Select all
  https://domain.com/OpenKM/com.openkm.frontend.Main/j_security_check


Might be that my ProxyPass setup is incorrect, or is there some security mechanism in OpenKM I need to tweak?
 #9608  by jllort
 
That's not exactly how we doing it.
Code: Select all
ProxyPass / ajp://localhost:8009/OpenKM/
ProxyPassReverse / http://openkm.your-domain.com/OpenKM/
Here it's well explained and there several files that might be changed apache2.conf that obviuosly you changed to resolve mydomain.com, proxy.conf and some other file where you've written the proxy configuration.
 #9659  by oxyis
 
jllort wrote:That's not exactly how we doing it.

ProxyPass / ajp://localhost:8009/OpenKM/
ProxyPassReverse / http://openkm.your-domain.com/OpenKM/

Here it's well explained and there several files that might be changed apache2.conf that obviuosly you changed to resolve mydomain.com, proxy.conf and some other file where you've written the proxy configuration.
I understand little better now what ProxyPassReverse actually do. I tried your suggestion, but I am still getting the same error. Where you suppose to add a link to page explaining how one should configure Apache?

Ox

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.