I have a typical Rails application running with Nginx and Mongrel on my main domain. I want to add a WordPress blog at the /blog path and prefer using Apache, whether on the same server or an external one, while keeping a unified URL for users. Is this setup achievable, or what alternative approach would you recommend?
In my experience setting up a WordPress blog alongside a Rails application, I found it simpler to let Nginx handle both applications directly using a split configuration. For instance, you can use Nginx to proxy /blog requests to an Apache server running WordPress on a separate port, but I eventually opted for a unified Nginx configuration serving both Rails and PHP via PHP-FPM. This not only avoids the potential pitfalls of managing two servers on one domain but also simplifies SSL and caching configurations. I recommend thorough testing on a staging environment before moving to production.