I need to create a nginx configuration with redirect, this is my conf:
server {
listen          8080;
server_name     test.example.org;
index           index.php index.html;
return          301 $scheme://test.example.org/dashboard;
location        /dashboard {
    alias           /path/to/files;
    index           index.php index.html;
    }
}
I need redirect test.example.org to test.example.org/dashboard,when i go to test.example.org, my browser get an error "Too many redirects"


locationandaliasbe swapped? It makes more sense to me that way...