I have various files in the directory '/var/www/something'. The normal root of my nginx server is '/var/www/html'.
Now I want to serve only the file '/var/www/something/file.exp' as http://someserver.org/ecos/file.exp.
My current configuration uses something like that:
location =/ecos/file.exp {
rewrite '^/ecos/(.*)$' '/$1' last;
root /var/www/something;
}
, but it does not work.
What am I doing wrong?