Forums

Installing WordPress on existing Rails / Apache server (6 posts)

  1. caliwildman
    Member
    Posted 4 years ago #

    I have a functional Rails site and would like to also install WordPress on the same server. I would like the blog's url to be http://www.mysite.com/blog. I am an Apache newbie and only know the bare basics necessary to configure it for Rails. And I can't figure out how to configure Apache to accomplish this. Can someone help?

  2. Chris_K
    Member
    Posted 4 years ago #

    I guess I'm not completely understanding the question.

    Why not just put the WordPress files into your web site's /blog directory?

  3. caliwildman
    Member
    Posted 4 years ago #

    A potential problem is the way Rails Capistrano (deployment tool) works. Every time I migrate my Rails app to a new release, a new dir gets created and the current Rails app dir (which is symbolic link maintained by Capistrano) is updated to point to the new dir. I will have to manually move the wordpress dir to the new Rails dir and this is something I wish to avoid if possible. Hope this makes more sense.

  4. willwp
    Member
    Posted 3 years ago #

    @caliwildman Did you ever find a solution? I am facing the same question.

    Thanks.

  5. willwp
    Member
    Posted 3 years ago #

    Hi, did you ever find a solution? I am facing the same question.

  6. robbpdx
    Member
    Posted 3 years ago #

    This is easy to do with Apache:

    • Set up an alias for the URL you want wordpress to have.
    • Create a proxy pass exception for that path.
    • Proxy everything else to Rails.

    That will look like this. Taken from my Apache config:

    Alias /blog /home/other_content/blog
    <Directory /home/other_content/blog>
    AllowOverride All
    </Directory>

    ProxyPass /blog !

    ProxyPass / balancer://mycluster/
    ProxyPassReverse / balancer://mycluster/

    BTW, I've uploaded a new WordPress plugin to do single sign-on with Rails. Search for 'rails' in the plugin directory.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags