feat(wpcarro/blog): Nginx Virtual Host (note to self)
Making `curl` requests to virtual hosts. Change-Id: I9516ac22c5e2a46cadfe5f8abee06c27718f1069 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7298 Autosubmit: wpcarro <wpcarro@gmail.com> Reviewed-by: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
This commit is contained in:
parent
c725838ab9
commit
2a4768d497
2 changed files with 14 additions and 0 deletions
|
@ -99,4 +99,11 @@
|
||||||
content = ./posts/nix-env-note.md;
|
content = ./posts/nix-env-note.md;
|
||||||
draft = false;
|
draft = false;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
key = "nginx-virtual-host-note";
|
||||||
|
title = "Nginx Virtual Host (note to self)";
|
||||||
|
date = 1668448541;
|
||||||
|
content = ./posts/nginx-curl-note.md;
|
||||||
|
draft = false;
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
|
7
users/wpcarro/website/blog/posts/nginx-curl-note.md
Normal file
7
users/wpcarro/website/blog/posts/nginx-curl-note.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
## Note to Self
|
||||||
|
|
||||||
|
Use the following to make requests to Nginx virtual hosts from the host itself:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ curl -H 'Host: trace.website.internal' localhost:8000
|
||||||
|
```
|
Loading…
Add table
Reference in a new issue