We’re starting to see a lot of startups from the different accelerators needing solid hosting for their WordPress blogs, the easiest solution is to just use a sub-domain (blog.mystartup.com) but most of our SEO friends recommend against it, as Google sees the content on the blog as a separate site and doesn’t necessarily relate the two sites to be of the same domain.
With that in mind, here’s a simple method to let you host your WordPress blog, and maintain the /blog link.
If you’ve written a ROR app, chances are you’re deploying it using nginx and passenger. Assuming you’re using the default nginx package, all you need to add to your server directive is the following
location /blog {
proxy_pass http://127.0.0.1:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
}
Where, 127.0.0.1 is an instance of apache2 running PHP and WordPress. If you decide to become
a ZippyKid customer, you’ll need to replace 127.0.0.1 with a different ip that we’ll provide
to you.