08 Aug 2008

Hosting Rails app and Wordpress on same domain(as folder instead of subdomain)

Apache, RubyonRails, deployment, hosting, rails, virtualhost, wordpress posted by Akhil Bansal

Hey guys, Yesterday I did an interesting server configuration. Actually we had a rails app hosted on server which is using passenger(a.k.a mod_rails). This application can be access by going to http://domain.com . Also we had a wordpress running which could be access by going to http://blog.domain.com.

But, for SEO sake I had to change configuration so that wordpress can be access by http://domain.com/blog instead of http://blog.domain.com/

The problem was if I configure wordpress for http://domain.com/blog and go to this url, the request was handled by rails app because of domain.com virtualhost.

So what I did? I changed apache virtualhost configuration for http://blog.domain.com and http://domain.com as:

Also I created a symbolic link to wordpress installation directory under rails public folder(ln -s /var/www/html/wordpress /var/www/html/railsapp/blog).

I restarted apache and it worked fine. Wordpress was running at http://domain.com/blog and rails app was as http://domain.com/.

22 Dec 2005

Wordpress as CMS

wordpress posted by mj

While searching for a CMS for a client website, we started experimenting with “Wordpress as a CMS”. Though we have been using WP as a blogging tool for a long time now, it was the first time we considered it for as a pure CMS application.

Reading the various documents at WP codex site, we created some pages. Then we created the navigation menus. Everything we needed was easily available or needed just very little hacking.

And while working on the client’s site, we decided it was time to move our own site (this site) to wordpress too. And voila, we have new website running on WP which provides all our static pages and the additional capability of business blogging. We hope it would prove to be an efficient tool to stay in touch with our clients.

Did you like this? Share it: