Directing a context at another Virtual Host

Discussion in 'Ruby/Rails' started by henster, May 18, 2007.

  1. henster

    henster Member

    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?

  2. mistwang

    mistwang LiteSpeed Staff

    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.
  3. mistwang

    mistwang LiteSpeed Staff

    Make sure php files is configured to be processed as PHP script with script handler either at vhost level or server level.

Share This Page