Set a particular location for address starting with '?'

mvip nginx-forum at nginx.us
Thu Sep 24 20:22:58 MSD 2009


Cliff, you're my hero! =)

I modified it slightly and ended up with:

location = / {
if ($is_args) {
proxy_pass http://blog.foobar.com; # wordpress
}
proxy_pass http://www.foobar.com; # django
}


It works great and that is all that matters.

To address your question with sub-domain or folder -- it's a matter of having a pretty URLs and a seamlessly integrated blog and site. =)

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,8769,8994#msg-8994






More information about the nginx mailing list