Re: [squid-users] Squid cannot redirect to an HTTP 302

From: Chaitanya Shastri <chait.shastri_at_gmail.com>
Date: Mon, 18 Jun 2012 15:09:50 +0530

Hi Amos,
   I tested acl type http_status in squid version 3.0 and it works
great. I searched for similar acl type in squid version 2.6. But there
is no such acl type defined in this version. We have squid 2.6 in
production environment and we will move to squid 3.1 shortly. Is there
any alternative to acl type http_status?

Thanks.

On Sat, Jun 16, 2012 at 4:38 PM, Chaitanya Shastri
<chait.shastri_at_gmail.com> wrote:
> Hi Amos,
>    That did the thing!!
> Also thanks for the note.
>
>
> On 6/16/12, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>> On 16/06/2012 12:54 a.m., Chaitanya Shastri wrote:
>>> Thanks for a quick reply. We only have a few content types allowed for
>>> the intranet clients. The page which I am trying to access has the
>>> content type application/xml which I
>>> have
>>> already put in the allowed content types.
>>> How do I permit 302 status through squid?
>>
>> With an HTTP status ACL.
>>
>> Place this at the top of your http_reply_access lines:
>>
>>    acl okStatus http_status 302
>>    http_reply_access allow okStatus
>>
>>
>> NOTE:
>>    HTTP contains a lot of things which do not necessarily have a type
>> associated. You probaby want to increase that to include all other forms
>> of redirect (300-399) and HTTP control status messages (100-199). Maybe
>> also error responses (400-599), although these are expected to have
>> bodies it is a *very good* idea to let them through unaltered.
>>   Which leaves you with the 200-299 range which are expected to have
>> various body content types.
>>
>>   acl limitedReplies http_status 200-299
>>   http_reply_access allow !limitedReplies
>>
>> Amos
>>
>>
Received on Mon Jun 18 2012 - 09:40:00 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 19 2012 - 12:00:04 MDT