CMDBuild Forum

cmdbuild behind apache proxy

Hi !

I have a running cmdbuild instance which il would hide behind a apache proxy to hide the long url and the port and on in a second time setup an ssl connection between browser and apache proxy.

I have configured a  simple virtualhost on apache like this:

<VirtualHost *:80>

        ServerName cm.mydomain.com

        ServerAlias cm.mydomain.com

       ProxyPass / http://cm.ev.mydomain.ev:8080/cmprod/

       ProxyPassReverse / http://oxyatoolsdev.ev.mydomain:8080/cmprod/

</VirtualHost>

I have access to the instance login form but the user/password validation doesn't works as it should. The user/password is not validated and I stick to the login screen. Nothing goes wrong neither in the apache logs or the tomcat logs.

Any idea or clue ?

Regards,

Olivier

 

 

Hi,

I've found a workaround using an apache redirection before proxying :

<VirtualHost *:80>

        ServerName cm.mydomain.com

        ServerAlias cm.mydomain.com

 

        Redirect permanent / http://cm.mydomain.com/cmprod/

 

        ProxyPass /cmprod/ http://cm.mydomain.com:8080/cmprod/

        ProxyPassReverse /cmprod/ http://cm.mydomain.com:8080/cmprod/

 

</VirtualHost>

 

 

 

Previously Olivier v wrote:

Hi !

I have a running cmdbuild instance which il would hide behind a apache proxy to hide the long url and the port and on in a second time setup an ssl connection between browser and apache proxy.

I have configured a  simple virtualhost on apache like this:

<VirtualHost *:80>

        ServerName cm.mydomain.com

        ServerAlias cm.mydomain.com

       ProxyPass / http://cm.ev.mydomain.ev:8080/cmprod/

       ProxyPassReverse / http://oxyatoolsdev.ev.mydomain:8080/cmprod/

</VirtualHost>

I have access to the instance login form but the user/password validation doesn't works as it should. The user/password is not validated and I stick to the login screen. Nothing goes wrong neither in the apache logs or the tomcat logs.

Any idea or clue ?

Regards,

Olivier

 

 

 

Previously Olivier V wrote:

Hi,

I've found a workaround using an apache redirection before proxying :

<VirtualHost *:80>

        ServerName cm.mydomain.com

        ServerAlias cm.mydomain.com

 

        Redirect permanent / http://cm.mydomain.com/cmprod/

 

        ProxyPass /cmprod/ http://cm.mydomain.com:8080/cmprod/

        ProxyPassReverse /cmprod/ http://cm.mydomain.com:8080/cmprod/

 

</VirtualHost>

 

 

 

Previously Olivier v wrote:

Hi !

I have a running cmdbuild instance which il would hide behind a apache proxy to hide the long url and the port and on in a second time setup an ssl connection between browser and apache proxy.

I have configured a  simple virtualhost on apache like this:

<VirtualHost *:80>

        ServerName cm.mydomain.com

        ServerAlias cm.mydomain.com

       ProxyPass / http://cm.ev.mydomain.ev:8080/cmprod/

       ProxyPassReverse / http://oxyatoolsdev.ev.mydomain:8080/cmprod/

</VirtualHost>

I have access to the instance login form but the user/password validation doesn't works as it should. The user/password is not validated and I stick to the login screen. Nothing goes wrong neither in the apache logs or the tomcat logs.

Any idea or clue ?

Regards,

Olivier

 

 Hi!

I've used the link bellow to get the trick.

https://devtidbits.com/2015/12/08/nginx-as-a-reverse-proxy-to-apache-tomcat/   (go through it and find the sever.xml configuration file part). It will solve your problem.

Regards,

Ulrich