I have spent an hour looking for an answer to this, but unless you know the vocabulary it is very difficult to search. What I want is dead simple. I have a server like so:
server {
listen 80;
server_name test.dev;
root /srv/www;
location / {
index foo.html;
}
location /foo {
index foo.html;
}
location /bar {
index foo.html;
}
}
What I want is for /, /foo, and /bar to all point to the exact same file. In other words, I want the location part to be completely ignored. Just serve the file from the root directory that I tell you to serve.
Alias doesn’t seem to be the answer, doesn’t know which file it is supposed to serve.
I’d probably use rewrite.
Something like that yah, I think you can figure it out from here 🙂