PDA

View Full Version : Directing a context at another Virtual Host


henster
05-18-2007, 11:12 AM
Hi there,

We have a rails app running at '/'.

We are starting a blog (wordpress) on the site that uses php and we need to reside at '/blog'.

I've set up a new virtual host for the blog. What is the correct way of diverting traffic from '/blog' to the correct virtual host?

Thanks
Henry

mistwang
05-18-2007, 11:43 AM
You don't have to creat a new vhost for the blog, just create a static context to the rails vhost with URI "/blog/", pointing to the location of your wordpress directory. It should work.

mistwang
05-18-2007, 11:44 AM
Make sure php files is configured to be processed as PHP script with script handler either at vhost level or server level.