02-27-2014 03:41 PM
Hi,
I'm trying to configure a name based virtualhost with Apache Web Server doing reverse proxy to Tomcat where the Activiti Explorer is deployed.
The "important" part of web server configuration is as follows:
ProxyPass /activiti-explorer/ http://127.0.0.1:8080/activiti-explorer/
ProxyPassReverse /activiti-explorer/ http://127.0.0.1:8080/activiti-explorer/
With that configuration, I tried to mask the application context path, but the context path is present in many parts of the response:
vaadin.vaadinConfigurations["activitiexplorerui-1528442030"] = {appUri:'/activiti-explorer/ui', standalone: true, themeUri:"/activiti-explorer/VAADIN/themes/activiti", versionInfo :
So I decide to expose the application context path with the following configuration:
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
but a following problem arises: the action URL of the login form has an absolute URL indicating protocol, host and port:
<form id="loginf" method="post" onkeypress="submitOnEnter(event)" target="logintarget" action="http://127.0.0.1:8080/activiti-explorer/ui/1/loginHandler">
When I try to login, the browser gets a "404 Not Found" (seen with firebug) because that URL does not match the virtualhost (in fact, it neither reaches the web server).
I tried using "ProxyPreserveHost On" (that makes the reverse proxy to include the Host: header with the appropriated hostname in the HTTP request made to Tomcat) and using the hostname on the ProxyPass and ProxyPassRevers URLs with the same results.
¿Is there any way to configure Activiti Explorer to use relative URLs as much as possible? At least, I need to eliminate full absolute URLs and can handle with full path relative URLs (i.e. starting from /activiti-explorer/...).
Thanks in advance!
M.
03-05-2014 09:49 AM
03-10-2014 06:57 AM
03-10-2014 07:26 AM
03-11-2014 08:29 AM
03-12-2014 10:03 AM
03-17-2014 04:20 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.