Can not solve the following problem:
Is there a website with a subdomain, for example onetwo.domain.com
You need to make when entering the address domain.com/one/two/ open website listed above, but in the address bar stayed the same introduced.
Don't know if this is possible, but it would be more so if you enter onetwo.domain.com occurred redirect domain.com/one/two with/ without cyclic redirect.
I wrote this code:
rewrite ^/one/two/ http://onetwo.domain.com/ last;
but at the address bar changing, since you need to specify a relative path, but how to do it with a subdomain I do not know.