On 6/29/07, Andreas Hartmann <[EMAIL PROTECTED]> wrote:
Hi Lenya devs,I propose to introduce the option to configure global proxies (i.e., proxies for all resources outside a publication) independently of publications. I have implemented a GlobalProxies service in my sandbox: <component logger="lenya.proxy" role="org.apache.lenya.cms.linking.GlobalProxies" class="org.apache.lenya.cms.linking.impl.GlobalProxiesImpl"> <proxy ssl="false" url="http://cms.example.com"/> <proxy ssl="true" url="https://cms.example.com"/> </component> which is used by the OutgoingLinkRewriter (and thus by the ProxyTransformer and ProxyModule): // link doesn't point to publication else { Proxy proxy = getGlobalProxies().getProxy(ssl); rewrittenUrl = proxy.getUrl() + url; } The <proxies> element in publication.xml will become obsolete, only the area-based <proxy> elements will be necessary. In contrast to the current implementation, requests to non-publication URLs can now use the proxy settings. An example is the CSS page /lenya/css/boxes.css which can now build proxy-based URLs like this: url('https://cms.example.com/modules/svg/tab-topRight...') WDYT about this concept? The easiest way would be to configure the proxies in cocoon.xconf, but we could also use a separate configuration file. -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch
+1 ... I like this idea a lot, although I'm sure I don't grasp all the implications. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
