LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 02-25-2008, 06:07 AM   #1
drmouse
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,
Mouse
 
  


Reply

Tags
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 01:45 PM
Warning ___ specifies undefined mime type/service type mbvpixies78 Linux - Software 0 12-29-2007 11:25 PM
Making a Squid Redirector using BASH win32sux Programming 6 06-14-2006 07:28 AM
Squid+Clam+Redirector depam Linux - Software 1 02-16-2006 05:57 AM
squid complaining about redirector processes lewus Linux - Software 0 02-08-2005 02:31 AM


All times are GMT -5. The time now is 09:20 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration