Re: understanding reverse proxy using squid
- From: John-Paul Stewart <jpstewart@xxxxxxxxxxxxxxxx>
- Date: Sat, 28 Apr 2007 10:35:10 -0400
query.cdac@xxxxxxxxx wrote:
I am just visualizing how a reverse proxy works.
Squid, a open source tool can be configured to work
as a reverse proxy.
Actually a reverse proxy lies inbetween the Internet and the Web
server. When a request from a client comes in , the request first goes
to the proxy server. The proxy server will look in its cache for the
requested page,if it is there in the cache, it will send the requested
page to the client or it will forward the request to the original web
server.
In such a scenario, the proxy server listens at port 80 and the web
server listens at some other port other than normal port 80.
The proxy server listens at port 80, yes. But the web server can also listen at port 80...on a different IP address. E.g., if your reverse proxy was at 192.168.1.1 port 80, then your web server could be at 192.168.1.2 port 80. The only reason you'd need to have the web server listening on a different port is if it and the proxy are trying to listen on the same IP address.
[snip]
My confusing is regarding the how the web browsers will know that it
has to first contact the proxy server instead of the web server.
One way that can be done which I am thinking is, when I get a
registered ip address for my web server , instead of assigning the ip
address to the web server , I will assign it to the proxy server. The
proxy server is configured in such that any request that comes to it ,
it will forward it to the web server if the request is not available
in its own cache . In that case , the web server will have a private
ip address.
That's about the only way to do it. Clients have to see the IP address of the reverse proxy in order for it to work.
.
- References:
- understanding reverse proxy using squid
- From: query . cdac
- understanding reverse proxy using squid
- Prev by Date: Re: Accidental deletion. Help please!
- Next by Date: Re: Installing Tor in Linux
- Previous by thread: understanding reverse proxy using squid
- Next by thread: newbie question about memory
- Index(es):
Relevant Pages
|