LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-27-2013, 05:33 PM   #1
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Rep: Reputation: 1
reply_body_max_size with deny_info


hi ,

as every one knows we can redirect squid access denied error to a given url using
Quote:
deny_info and http_reply_access directives

acl office_lan src 192.168.60.0/24
acl bad_sites dstdomain "/etc/squid/badsites.txt"
deny_info http://www.customdomainaddress.com office_lan
http_reply_access deny bad_sites office_lan
so easily we can redirect nasty squid error page to any other site or a specified url. So in this way i want to redirect download limit exceeded error page to some url.

in my config i already have below acl
reply_body_max_size 10 MB users (users is acl give for my lan )

so any file exceeds 10 MB can't allowed and displayed an error saying limit exceeded can't be downloaded.

Quote:
Now my idea is to redirect this error to my custom url, so that it goes to specifed page where an custom error shown in html page
Please any one tell me is there any way to do that , i mean where ever user comes across size limit error , that page has to be redirected to some other web address.

thank you in advance.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reply_body_max_size to limit download size in squid tarik123 Linux - Enterprise 1 12-02-2010 01:41 AM
deny_info, squid, NTLM auth ???? paul_mat Linux - Networking 0 02-10-2006 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration