change URL bonita

1
+2
-1

Bonjour,

J'aimerais changer l'URL de mon portail bonita exemple je veux changer ca --> http://localhost:8080/bonita en ca http://localhost:8080/portail

Merci d'avance pour votre aide.

1 answer

1
0
-1
This one is the BEST answer!

Moi Je metterai apache en écoute sur le port 8080 et j'utiliserai le mod proxy d'apache et côté tomcat un connector pour le faire écouter sur le port 8081 pour l'appli Bonita.

Dans la conf apache ça ferai un truc comme ça :

ProxyPass         /portail  http://localhost:8081/bonita
ProxyPassReverse  /portail  http://localhost:8081/bonita

et dans la conf tomcat :

<Connector port="8081" ...
              proxyName="localhost"
              proxyPort="8080"/>

Plus de précision sur cette page : https://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html

Comments

Submitted by DrakunDry on Thu, 05/15/2014 - 12:54

great !! its works !! je vous remercie

Submitted by bonitasoft.com_120 on Mon, 12/18/2017 - 21:03

We did this procedure with version 7.6.

   ProxyPass         /toto/  http://localhost:8080/bonita/
   ProxyPassReverse  /toto/  http://localhost:8080/bonita/

When we call http://localhost/toto/
then bonita redirects to http://localhost/toto/portal/homepage
then bonita redirects again to http://localhost/bonita/login.jsp?redirectUrl=%2Fbonita%2Fportal%2Fhomepage

Which of course is not found because we did not redirect 'http://localhost/bonita/'

If I edit the URL to transform it replacing /bonita/ with /toto/
http://localhost/toto/login.jsp?redirectUrl=%2Fbonita%2Fportal%2Fhomepage

I've got the correct login page

Then I try to login...
Sounds good but I arrive on the page
http://localhost/bonita/portal/homepage

with of course a 404 page...

Let's try http://localhost/toto/portal/homepage

It is looping to the page
http://localhost/bonita/login.jsp?redirectUrl=%2Fbonita%2Fportal%2Fhomepage

with a 404 page...

What did I miss? Is there any other configuration to do on the apache proxy side and/or Tomcat/bonita side?
Thanks

Notifications