Re: [EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-23 Thread Sander Temme
On Oct 22, 2007, at 2:06 PM, Alan AZZERA wrote: I thought about another approach : leaving as is my public DNS zone, and modifying my private one to distribute private IP for public domain names. My Reverse Proxies have just to be taught to use the private DNS, and all I have to do is to

Re: [EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-22 Thread Christian Folini
On Fri, Oct 19, 2007 at 09:09:54PM +0200, Alan AZZERA wrote: RewriteRule /(.*) http://backend/$1 [proxy,last] But AFAIK, mod_rewrite cannot alter anything *inside* the HTML code going out the server. mod_proxy_html can... yep. I'm currently trying to deal with PMWiki. It uses only

Re: [EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-22 Thread Alan AZZERA
'nite I'll try your tips tomorrow. Thanks a lot. If you want to get your hands really dirty, you can also leave mod_headers aside and set www.example.com statically in /etc/hosts to point to the backend. That way the proxy server will still believe that he is www.example.com via servername,

Re: [EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-19 Thread Christian Folini
hya, On Fri, Oct 19, 2007 at 03:32:37PM +0200, Alan AZZERA wrote: I ran into such awful hacks with mod_proxy_html. Proxying bad applications is a dirty business. They do not get any cleaner when they are told to behave nicely behind a proxy. IMHO... It could be efficient, but it was

Re: [EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-19 Thread Alan AZZERA
Proxying bad applications is a dirty business. They do not get any cleaner when they are told to behave nicely behind a proxy. I'm afraid you're right... mod_rewrite has that too. When proxying with mod_rewrite it is a good practice to set that. RewriteRule /(.*) http://backend/$1

Re: [EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-19 Thread Christian Folini
Hey Alan, You are facing a very typical problem. I am not proficient with mod_proxy_html, so I am not sure I can help you. However, the best way is always to go and fix the application. If you can not do that for whatever reason, then mod_proxy_html is a good approach. A more general approach is

[EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-19 Thread Alan AZZERA
Hi world ! Here is my problem, I hope someone could help me. I need to host some web apps, coded in PHP by non-professional developpers, and sometimes poorly written and designed. I use an Apache server configured as a Reverse Proxy, my real HTTP server is behind this R.P. I have two DNS zones,

Re: [EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-19 Thread Alan AZZERA
Hi ! Thanks for answering... You are facing a very typical problem. Undoubtly ;) ! I am not proficient with mod_proxy_html, so I am not sure I can help you. However, the est way is always to go and fix the application. It's such a pain ! There are plenty of well-designed apps, but far more