Page 1 of 1

Integrate with Apache on different box

PostPosted:Fri Mar 18, 2011 7:55 am
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?

Re: Integrate with Apache on different box

PostPosted:Sun Mar 20, 2011 11:49 am
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.

Re: Integrate with Apache on different box

PostPosted:Mon Mar 21, 2011 9:06 pm
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

Re: Integrate with Apache on different box

PostPosted:Tue Mar 22, 2011 12:59 pm
by jllort
Here it's well explained http://wiki.openkm.com/index.php/Apache but it's a part of OpenKM Network ( 30€ annual subscription to get full access to documentation )