Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-25-2008, 05:07 AM   #1
LQ Newbie
Registered: May 2004
Location: UK
Distribution: Debian Ethch, Fedora, SuSE 9.1 & 10.2 at work
Posts: 14

Rep: Reputation: 0
Squid redirector/URL rewrite based on MIME type

Hi all

I was just wondering if anyone knew of a way to rewrite a URL in Squid based on the MIME type recieved?

As a bit more info, I am trying to set up a download server. It's job will be to intercept files which should be downloaded to disk, basicaly those which your browser would pop up a save dialogue for, and download them in the background on the server, redirecting the user to a status page. Well, something like that, I have a concept in my head but not a full plan yet. I also plan to add additional download sources, eg BitTorrent and alternative URLs, as well as cache the result for use later.

I could do this based on the file extension in the request, but this would not always work. Can Squid do this? Or maybe Apache? I am not that fussed which proxy I use for it, and I run Apache anyway.

Thanks in advance,


mimetypes, proxy, redirect, squid

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Squid block by mime-type the live streaming mago Linux - Networking 2 08-25-2008 12:45 PM
Warning ___ specifies undefined mime type/service type mbvpixies78 Linux - Software 0 12-29-2007 10:25 PM
Making a Squid Redirector using BASH win32sux Programming 6 06-14-2006 06:28 AM
Squid+Clam+Redirector depam Linux - Software 1 02-16-2006 04:57 AM
squid complaining about redirector processes lewus Linux - Software 0 02-08-2005 01:31 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:26 PM.

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