Mod_proxy to allow php5

Situation, we've got servers using mod_vhost, ie mass virtual hosting and php4, with sites stored on a file server. We want to allow customers to test php5 without having to compile php5 for each hosting server or risk messing things up.

The plan was to setup a server with apache and php5, then to use mod_proxy to redirect requests from the php4 web servers for /php5/ paths or .php5 pages to the php5 server and let it handle the request. (It'll mount the main hosting file server so no issue over having access to the files)

Issues I'm seeing are..
1) mod_proxy proxypass seems to use paths /php5/ but not file types, any ideas?
2) the request to the php5 server from the php4 servers will loose the domain header so apache on the php5 server won't be able to use mass virtual hosting to figure out what domain was called and what file path it should be working on.

Can anyone figure out any solutions or workarounds for these or is the a simpler alternative. (host boxes are too busy to be thinking about having php4 and php5 running alongside, don't want to risk bugs in php5 from causing problems on the boxes)

 

 

 

 

Top