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:
parent
380a6a352c
commit
76210a217c
1 changed files with 3 additions and 1 deletions
|
|
@ -167,7 +167,9 @@ in {
|
||||||
"sandbox.wpcarro.dev" = {
|
"sandbox.wpcarro.dev" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
root = briefcase.covid-uk;
|
locations."/covid-19/" = {
|
||||||
|
alias = "${briefcase.covid-uk}/";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue