Wisemapping behind Apache reverse proxy

800 views
Skip to first unread message

marko.ke...@gmail.com

unread,
Sep 25, 2012, 4:30:59 AM9/25/12
to wisemappi...@googlegroups.com
Thank you from very promising Mind mapping tool and supporting open source ideology!

I'm running Wisemapping behind Apache reverse proxy. It's mostly clear setup but static content (css and javascript) paths (including bootstrap) are broken. Any known convenient (like setting baseuri property) way to resolve this?

pve...@gmail.com

unread,
Sep 25, 2012, 11:50:01 PM9/25/12
to wisemappi...@googlegroups.com
Hi Marko,

There seems to be some issue with this type of configuration. The problem is that the base url for the JSP pages are not being resolved properly. The fix will be available in the next release and consists of an extra configuration parameter in the app.properties.

In the short term, edit the webapp/wisemapping/jsp/init.jsp page and change the line:

<c:set var="baseURL" value="${fn:replace(pageContext.request.requestURL, pageContext.request.requestURI, pageContext.request.contextPath)}" />

to
<c:set var="baseURL" value="<put here you proxy url>" />

Let me know if this works.
Paulo

marko.ke...@gmail.com

unread,
Sep 26, 2012, 4:27:09 AM9/26/12
to wisemappi...@googlegroups.com
Hi Paulo,

I took a closer look at the jsp-files after posting my question and found out this baseURL variable initiation line (and the problem around it) and I actually did exactly the same thing you suggested and it solved the problem!

Thanks!

pve...@gmail.com

unread,
Oct 2, 2012, 11:47:34 PM10/2/12
to wisemappi...@googlegroups.com, marko.ke...@gmail.com
Hi Marko,

Could you please share the part of the configuration are you using in Apache for the reverse proxy ?. I would like to try to reproduce the issue.

Regards,
Paulo

marko.ke...@gmail.com

unread,
Oct 4, 2012, 1:27:18 AM10/4/12
to wisemappi...@googlegroups.com
Our Apache's proxy configuration isn't more complex than two following lines:
ProxyPass /wisemapping http://<host>:<port>/wisemapping
ProxyPassReverse /wisemapping http://<host>:<port>/wisemapping

cla...@in3.com.ar

unread,
Oct 29, 2012, 11:03:46 AM10/29/12
to wisemappi...@googlegroups.com, marko.ke...@gmail.com, pve...@gmail.com
Do you replace all $fn:replace... by the proxy URL?
It doesn't work for me.
Thanks.

remi.s...@telecom-paristech.fr

unread,
Oct 30, 2012, 11:39:19 AM10/30/12
to wisemappi...@googlegroups.com, marko.ke...@gmail.com
I do have the same problem, here is the link for you to test:

http://wisemapping.enst.fr/wisemapping/

thanks

Paulo Veiga

unread,
Oct 30, 2012, 12:51:59 PM10/30/12
to wisemappi...@googlegroups.com, marko.ke...@gmail.com
Hi all,

I apologize for not fixing this issue before. I hope that early this week I'll have a fix solving this issue once and for all.  I'll let you know once once the new installer is available.

Regards,
Paulo


--
You received this message because you are subscribed to the Google Groups "wisemapping-support" group.
To post to this group, send email to wisemappi...@googlegroups.com.
To unsubscribe from this group, send email to wisemapping-sup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/wisemapping-support/-/7BiNv7vlvpEJ.



--
WiseMapping Founder
Paulo Gustavo Veiga

pve...@gmail.com

unread,
Nov 4, 2012, 4:40:05 PM11/4/12
to wisemappi...@googlegroups.com, marko.ke...@gmail.com, remi.s...@telecom-paristech.fr
Hi,

I uploaded a new candidate version for the v3.0.RC3. It includes the fix for the Apache Proxy issue.
You can download it from here:

http://downloads.wisemapping.org/stable/wisemapping-v3.0.RC3.zip

The only required step is to configure the site.baseurl property in the app.properties file.

Let me know if this solves you problem.
Paulo

remi.s...@telecom-paristech.fr

unread,
Nov 6, 2012, 9:50:19 AM11/6/12
to wisemappi...@googlegroups.com, marko.ke...@gmail.com, remi.s...@telecom-paristech.fr, pve...@gmail.com
Hi Paulo,
thanks for this new version ; it is getting better but still some problems - if you try on my site :
http://wisemapping.enst.fr/wisemapping
then click "rejoignez-nous" or "join us" in english or "mot de passe perdu" or "password lost" in english the adress is not the one behind the proxy and becomes the internal adress (nebula.enst.fr...) that is not accessible from the outside.
Thanks for your help,

pve...@gmail.com

unread,
Nov 7, 2012, 7:36:19 PM11/7/12
to wisemappi...@googlegroups.com, marko.ke...@gmail.com, remi.s...@telecom-paristech.fr, pve...@gmail.com
Hi,

Could you please try downloading the zip again ?. I think I nailed down the problem.

Paulo

remi.s...@telecom-paristech.fr

unread,
Nov 9, 2012, 6:05:49 AM11/9/12
to wisemappi...@googlegroups.com, marko.ke...@gmail.com, remi.s...@telecom-paristech.fr, pve...@gmail.com
Hello Paulo,
it works now, your reactivity is really pleasant !
merci beaucoup !

Rémi
Reply all
Reply to author
Forward
0 new messages