[code] if ($host = 'pda.myfourm.ru' ) { rewrite ^/$ myforum.ru/?pda permanent; } [/code] Posted at Nginx Forum: http://forum.nginx.org/read.php?21,97989,98837#msg-98837