At 22/04/2005 11:21 (), Olaf van der Spek wrote:
On 4/22/05, Justin Erenkrantz <[EMAIL PROTECTED]> wrote:
> On Thu, Apr 21, 2005 at 10:04:54AM +0530, Devendra Singh wrote:
> > Hi,
> >
> > I am writing to the Developer List because I did not get any response on
> > the Users List and thought that the topic might be relevant to the dev list.
> >
> > If a request comes for a directory w/o trailing slash, it gets cached and
> > the subsequent requests see:
> >
> > Moved Permanently
> > The document has moved here
> >
> > for try to access the URL:
> > http://www.beach-clothing.com/where-to-buy
>
> I don't get it. What's your problem? -- justin


The 'here' link is to http://www.beach-clothing.com:8080/where-to-buy/
while he wants it do be to http://www.beach-clothing.com/where-to-buy/

When the Front-End Apache (running on port 80) gets a request for http://www.beach-clothing.com/where-to-buy (notice the lack of trailing slash), it issues a 301 Moved Permanently to http://www.beach-clothing.com/where-to-buy/ (notice the added trailing slash). The Front-End Apache proxies this request to Back-End Apache running on 8080 which becomes http://www.beach-clothing.com:8080/where-to-buy/ and this is Cached by the Front-End Apache. The subsequent request for this URL gives http://www.beach-clothing.com:8080/where-to-buy/ from the Cache.


This is not as expected. Thus I feel that either 301 responses should not be proxied or they should not be Cached at all.

Thanks.

Devendra Singh



Reply via email to