You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Peter Shipley <pe...@windj.ath.cx> on 2005/08/10 18:29:38 UTC
Kupu and Proxied URLs
I have been playing around with proxying (so sticking Apache in front of
Tomcat). Apache running on port 80, Tomcat running on port 8080.
One thing I noticed is that I might have the authoring area proxy URL
set to http://www.somecompany.com/lenya/pubs/default/authoring but
Tomcat will still use
http://backend.somecompany.com:8080/lenya/pubs/default/authoring
Both these URLs work and can access the CMS correctly.
Now the problem...fire up Kupu and try and use the library drawers
(insert internal link). The drawer will work in Internet Explorer but
not in Firefox. The reason being the server is writing the full URL
based on the request header. In this case, the request is that of the
Tomcat URL.
Firefox will throw a JavaScript security error about trying to access
data at
http://backend.somecompany.com:8080/lenya/pubs/default/authoring
from
http://www.somecompany.com/lenya/pubs/default/authoring
so it would seem that any URLs given to Kupu would need conform to any
defined proxy URLs, otherwise it should just be based on the request header.
I am fairly certain the error would show across different server but my
test was a single server running both Apache and Tomcat. In my case,
even the port number change was enough to throw the error.
Anyone else noticed this ?
Regards
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org