From 2a4768d49796911836b15e937249c33ee73e6cc4 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 14 Nov 2022 09:56:15 -0800 Subject: 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 Reviewed-by: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/website/blog/posts.nix | 7 +++++++ users/wpcarro/website/blog/posts/nginx-curl-note.md | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 users/wpcarro/website/blog/posts/nginx-curl-note.md 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 +``` -- cgit 1.4.1