location ~ ^/$ {
    return 301 http://www.test.com/;
}
Advertisements