Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need an HTTP proxy which forwards all requests without change, except for some small dynamic subset of URLs, for which content will be substituted for something else.

So for example if you go to http://www.google.com/ the proxy would substitute something funny for Google logo, but leave all other traffic unaffected, including other traffic to www.google.com servers.

share|improve this question

2 Answers 2

Apache httpd or Lighttpd and probably many other HTTP servers, may be configured as a lightweight proxy server. They also can serve whatever you want for the selected URLs and are probably easier to configure for this purpose than squid (which is mainly a caching proxy).

share|improve this answer
    
Good point. Either method should be doable pre April 1st tho :) –  Tom Newton Mar 2 '10 at 19:34
    
Is there any tutorial document explaining how to configure them for that particular purpose? I imagine something could be hacked based on apache/lighttpd/etc. but has it been done before? –  taw Mar 6 '10 at 6:31

Squid can do that as far as i know. Use a redirector to change out the logo. Look here for some info on creating redirectors. Quite a bit of work for a practical joke mind ;)

share|improve this answer
    
Wouldn't redirecting as opposed to substituting on flight mess up with the same origin policy? –  taw Mar 6 '10 at 6:30
    
Possibly - but since the OP just wants to fiddle a few images... –  Tom Newton Mar 6 '10 at 14:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.