I am trying to server data from my location block.
location ~ ^/(archivefiles) {
root /web/htdocs/archivefiles/;
}
When a user visits. http://www.example.com/archivefiles/sports/football/1981.pdf
the page errors. I have tried the following combinations in the location block with no success.
root /web/htdocs/archivefiles;
root /web/htdocs/archivefiles/$1;
root /web/htdocs/$1;
I have looked at the documentation and it looks as if i am using everything correctly.
0 Answers