Is it possible to redirect from a subdomain to a folder using the application nginx.conf on Dotcloud?
I want to redirect http://blog.domain.com to http://www.domain.com/blog
I may be wrong but as I understand the content of the application level nginx.conf is inserted into a server block of the main nginx.conf.
I've tried the following directive in the nginx.conf but it doesn't work:
rewrite http://blog.domain.com http://www.domain.com/blog/ permanent;
Has anyone else managed to do this?