Create a forward proxy on a Linux server -


situation: have 2 linux boxes running lamp stack. want access http box1 via box2 (using wget , curl). want people using box2 see no change @ all.

what's best solution? need easy setup if possible.

you'll have more specific; why users notice anything box2? intention serve content box1 without intermediate processing? or box2 making requests of box1 while in process of generating content users have requested? proxy in question?

if want requests made of box2 transparently handled box1 in background, ignore wget / curl , and configure apache mod_proxy.

if you're trying build cache of responses box1 served via box2, perhaps running squid in reverse proxy mode makes more sense. it's made caching. :) (building caching application on box1 might better long-term answer; pretty easy in ruby-on-rails applications add fragment caching , page caching application, , memcached can used add model-caching behavior, different caching fragments or whole pages. approach lets expire pages when data on pages invalidated, difficult squid or hand-rolling curl/wget page loading tricks.)

if want keep box1 hidden on happy side of firewall, use firewall port forwarding forward 1 specific port inside. (even on box2; nothing says machine doing forwarding needs 2 nics.)


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -