diff options
author | William Carroll <wpcarro@gmail.com> | 2022-11-14T17·56-0800 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-11-14T18·29+0000 |
commit | 2a4768d49796911836b15e937249c33ee73e6cc4 (patch) | |
tree | f67388d005fd1f542764b61f5d5ea01fdab6e557 /users/wpcarro/website/blog | |
parent | c725838ab9ebc46c901c80ee659af267f969b21d (diff) |
feat(wpcarro/blog): Nginx Virtual Host (note to self) r/5284
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
Diffstat (limited to 'users/wpcarro/website/blog')
-rw-r--r-- | users/wpcarro/website/blog/posts.nix | 7 | ||||
-rw-r--r-- | users/wpcarro/website/blog/posts/nginx-curl-note.md | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/users/wpcarro/website/blog/posts.nix b/users/wpcarro/website/blog/posts.nix index f1911496e57c..416a367833f8 100644 --- a/users/wpcarro/website/blog/posts.nix +++ b/users/wpcarro/website/blog/posts.nix @@ -99,4 +99,11 @@ content = ./posts/nix-env-note.md; draft = false; } + { + key = "nginx-virtual-host-note"; + title = "Nginx Virtual Host (note to self)"; + date = 1668448541; + content = ./posts/nginx-curl-note.md; + draft = false; + } ] diff --git a/users/wpcarro/website/blog/posts/nginx-curl-note.md b/users/wpcarro/website/blog/posts/nginx-curl-note.md new file mode 100644 index 000000000000..03937868ac20 --- /dev/null +++ b/users/wpcarro/website/blog/posts/nginx-curl-note.md @@ -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 +``` |