Emiliano Heyns wrote:
Yes, if 'one box' has mod_rewrite, and 'another box' has apache + PHP.

Other than that, I'm afraid you're SOL.

Generally agreed. There are some alternatives beyond mod_rewrite/mod_proxy.


If using Apache 1.3.x for the frontend server, study the documentation of mod_proxy, in particular ProxyPass and ProxyPassReverse. You can use mod_rewrite instead of ProxyPass, and still use ProxyPassReverse for redirects and other niceties. We do this all the time.

You might also want to fudge ServerName on the Apache+PHP hostso that cookies and redirects look "normal" from the outside.

mod_proxy, however, won't give you any caching, because PHP cannot output Content-Length headers -- not even if you turn output buffering on. If you want caching, your answer is in mod_accel.

Having said that, you can use Apache2 on the Apache+Proxy and use mod_cache/mod_proxy on it... they are supposed to be much better for caching (Apache 2 rolls mod_proxy and mod_accel into one). In my experience, they are a bit immature right now.

There is always Squid in "web accel" mode, but I don't think that is reliable.

regards



martin


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to