The Artima Developer Community
Sponsored Link

Python Buzz Forum
Successful Squid reverse proxy install

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Phillip Pearson

Posts: 1083
Nickname: myelin
Registered: Aug, 2003

Phillip Pearson is a Python hacker from New Zealand
Successful Squid reverse proxy install Posted: Aug 13, 2007 9:02 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Phillip Pearson.
Original Post: Successful Squid reverse proxy install
Feed Title: Second p0st
Feed URL: http://www.myelin.co.nz/post/rss.xml
Feed Description: Tech notes and web hackery from the guy that brought you bzero, Python Community Server, the Blogging Ecosystem and the Internet Topic Exchange
Latest Python Buzz Posts
Latest Python Buzz Posts by Phillip Pearson
Latest Posts From Second p0st

Advertisement

I haven't had much luck with reverse proxies in the past. I tried using Squid on my own web server some time back, but at that time it wasn't really set up to reverse proxy lots of domains, I think, so I ended up writing my own reverse proxy, that supported SCGI, for my Python stuff. More recently I tried Varnish, but it broke form submission on peopleaggregator.net then tended to hang after a minute or so of traffic.

I haven't heard much about Squid for a while -- lots about Perlbal, Pound, nginx, etc -- but it seems to be working fine for WikiMedia and Flickr too. Today I gave it another go, and this time it seems to be working OK.

These instructions are good - I used the Squid 2.6 setup, running on Debian etch.

A working reverse proxy config, proxying for *.example.com, with public IP address 123.123.123.123, is as trivial as this:

- at the top of squid.conf:

cache_peer 127.0.0.1 parent 80 0 originserver default

- lower down, replace the 'http_port 80' line with:

http_port 123.123.123.123:80 vhost vport

- just before the deny all acl:

acl valid_dst dstdomain .example.com
http_access allow valid_dst

Comment

Read: Successful Squid reverse proxy install

Topic: Python 3000 Sprint @ Google Previous Topic   Next Topic Topic: Script Oracle and Mysql from Jython

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use