Hello, I currently have my website configured so I have a WordPress blog (at blog.ai-therapy.com), and some dynamic content served by web2py (at www.ai-therapy.com). This was pretty easy to set up - I just created two different applications in my.webfaction.com, with the www subdomain handled by a custom nginx & uwsgi application, and the blog subdomain handled by a 'wp' application. However, I would like to set it up so that the blog can be reached at: www.domain.com/blog Any ideas how I can do this? My problem is that the main site is served by nginx + uwsgi, but I guess I need the WordPress pages to be handled by something else. (FastCGI?) Is it possible for the same nginx server to send some requests to uwsgi, and some to FastCGI? My best guess is that I need to update my nginx.conf file (see below), but I have no idea how. Any suggestions would be appreciated! Thanks a lot! nginx.conf:
asked 05 Jul '12, 14:58 AICBT |
This is done easily by mounting the "wp" application on your website record at a URL Path of "/blog", while having your normal nginx + uwsgi application mounted on the same website record at a URL Path of "/". The front-end Nginx server will split incoming requests based on their URL Paths and route them to the correct application. You would not be making any changes to your private answered 05 Jul '12, 19:10 ryans ♦♦ |