Attempt to serve sandbox.wpcarro.dev/covid-19

Right now my website is serving at sandbox.wpcarro.dev, but I would rather
people view it at sandbox.wpcarro.dev/covid-19.

I previously tried to accomplish this with the following Nginx configuration:

```nix
locations."/covid-19" = {
  root = briefcase.covid-uk;
}
```

I am now trying `alias = ...` instead of `root = ...`. I got the idea from this
SO question, https://stackoverflow.com/questions/10631933/nginx-static-file-serving-confusion-with-root-alias.
This commit is contained in:
William Carroll 2020-03-19 12:39:07 +00:00
parent 380a6a352c
commit 76210a217c

View file

@ -167,7 +167,9 @@ in {
"sandbox.wpcarro.dev" = {
addSSL = true;
enableACME = true;
root = briefcase.covid-uk;
locations."/covid-19/" = {
alias = "${briefcase.covid-uk}/";
};
};
};
};