[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pf stops URLs without a trailing slash



----- Forwarded message from Zoong PHAM <[email protected]> -----
Date: Tue, 16 Aug 2005 00:58:44 +1000
From: Zoong PHAM <[email protected]>
To: Lars Hansson <[email protected]>
Cc: [email protected]
Subject: Re: pf stops URLs without a trailing slash
On Monday, 15 August 2005 at 22:12:19 +0800, Lars Hansson wrote:
> Highly unlikely, pf does not inspect package contents.
> 
> More information on the problem is needed such as actual error
> messages from www browsers and the apache logs.
>From Apache access_log I now understand the problem.
Since I use a reverse proxy server in front of Apache, it redirects
the requests to different ports that were not opened by pf.
As soon as I open those ports, the URLs without trailing slash work.
Thanks,
Zoong
----- End forwarded message -----
----- Forwarded message from Zoong PHAM <[email protected]> -----
Date: Tue, 16 Aug 2005 01:06:37 +1000
From: Zoong PHAM <[email protected]>
To: [email protected]
Subject: Re: pf stops URLs without a trailing slash
On Monday, 15 August 2005 at 15:59:13 +0100, John Wright wrote:
> 
> One thing to note about URLs which point to directories which don't have
> trailing slashes it they will get a URL redirect back which states the name
> of the web server how it is configured and not how it was passed in that
> particular request.
> 
> So if the request was for http://mywebserver.com/directory you could get
> redirected to http://www.mywebserver.com/directory/ which is slightly
> different.
That's the problem combined with the way my reverse proxy works:
The original request (without trailing slashes and at port 80) appears
as from the local IP. Apache redirects it by appends a trailing slash
to the original URL. But this time, it appears from the client's IP at
some ports that I defined in the reverse proxy settings.
Anyway, I open those ports in pf and now things work as before.
Thanks,
Zoong
----- End forwarded message -----