I successfully able to setup nginx and apache combination to serve wordpress blog with the help of this site. I exactly followed all the codes supplied in that site and following is the directory strcture of my blog and sub-blog.
I have no problems at all while surfing (main.com) but sometimes, if I call
the browser is redirected to
and got "Cannot connect to server" error from browser. "8080" is used as proxy port where nginx transfer all dynamic content traffics to Apache. But if I type this http://main.com/mainBlog again in the same address bar, problem disappear again. It would be annoy to users who doesn't know to reload the page without "8080" port.
Edit: I just found out that, if I leave slash at the end of the url, I got that problem but if I put slash, no problem at all. Where can I define for that problem?