On Tue, 2007-05-22 at 07:46 -0700, [EMAIL PROTECTED] wrote:
...
> ------- Additional Comments From [EMAIL PROTECTED]  2007-05-22 07:46 -------
> Created an attachment (id=20241)
>  --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20241&action=view)
> proxyTransformer version 1
> 
> This is the first version of the proxy transformer. 
> 
> The open issues are still the following cases:
> a) <link type="text/css" href="/default/modules/homepage/css/homepage.css"
> rel="stylesheet" /> - Using pub but not a valid area
> b) <a href="/index.html"><span>Apache Lenya Homepage</span></a> - the menu
> links which should point to the website IMO anyway
> c) <img alt="he" src="/modules/languageselector/flag-he-13.png" /> and <script
> src="/lenya/menu/menu.js" type="text/javascript"> </script> - point to the
> absolute root.
> 
> a) and c) can be solved introducing a global proxy url. 
> Meaning something like:
> <proxies url="https://www.host.com/lenya/";>
> 
> Will now test the patch from andreas.

I tested the patch (nice work Andreas) and in combination with the
proxyTransformer we are nearly done.

What is still missing is a global proxy url that will be used in the
cases a-c.

I propose to extend <proxies root="https://www.host.com/lenya/";> where
we then transform the root "/" to "https://www.host.com/lenya/"; in the
above described cases.

For a) it would e.g. be:
href="/default/modules/homepage/css/homepage.css" becomes
href="https://www.host.com/lenya/default/modules/homepage/css/homepage.css"; 
since the first "/" will be replaced by proxies/@root.

wdyt?

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to