|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
[1.4] [Proposal] Global proxy configurationHi 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 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: [1.4] [Proposal] Global proxy configurationOn 6/29/07, Andreas Hartmann <andreas@...> 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: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: [1.4] [Proposal] Global proxy configurationAndreas Hartmann schrieb:
> 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. Are there no objections? Thorsten, since you introduced the root proxy concept, what do you think about the global proxy configuration? Should I attach a patch to Bugzilla so you can try it out? -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: [1.4] [Proposal] Global proxy configurationOn Tue, 2007-07-03 at 13:14 +0200, Andreas Hartmann wrote:
> Andreas Hartmann schrieb: > > 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. > > Are there no objections? > > Thorsten, since you introduced the root proxy concept, what do you > think about the global proxy configuration? > > Should I attach a patch to Bugzilla so you can try it out? No, just go ahead and add it. +1 Sorry for not giving word earlier, just got back to work after having my parents at home and hardly read all mails. > > -- Andreas Thanks Andreas. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: [1.4] [Proposal] Global proxy configurationThorsten Scherler schrieb:
> On Tue, 2007-07-03 at 13:14 +0200, Andreas Hartmann wrote: >> Andreas Hartmann schrieb: >>> 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. >> Are there no objections? >> >> Thorsten, since you introduced the root proxy concept, what do you >> think about the global proxy configuration? >> >> Should I attach a patch to Bugzilla so you can try it out? > > No, just go ahead and add it. Done. Bob, Thorsten - thanks for your comments! -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
| Free Forum Powered by Nabble | Forum Help |