Re: [http-replicator-users] http-replicator license
Brought to you by:
g3rtjan
From: Ed S. <es...@ar...> - 2008-01-31 18:49:05
|
Sorry about my vague description of the patch. I hope I can clarify it: The purpose of the --mirror option is to make http_replicator behave as a reverse proxy rather than a normal proxy (so maybe it should be called --reverseproxy or something more precise). Let's say you run two instances of http_replicator on myserver: http_replicator --port 8080 --root /proxy http_replicator --port 8081 --root /mirror --mirror http://upstream.com Then you can download a document from upstream.com in two ways: http_proxy=http://myserver:8080 wget http://upstream.com/foo/doc.html wget http://myserver:8081/foo/doc.html The second http_replicator instance is effectively serving as a local mirror of http://upstream.com, just as if it were a regular httpd serving static content that the admin had manually rsynced from http://upstream.com. Since this instance proxies requests only to a single host, all the cached content ends up under /mirror/upstream.com:80; the --nohost option avoids this redundant directory level. Does that make sense? --Ed |