diff --git a/docs/kb/curl/curl-request-with-host.md b/docs/kb/curl/curl-request-with-host.md new file mode 100644 index 00000000..df65aecd --- /dev/null +++ b/docs/kb/curl/curl-request-with-host.md @@ -0,0 +1,15 @@ +--- +title: Curl request with Host Header +--- + +## Why + +Sometimes when you're testing NGINX or a WAF, you won't have a DNS record set up for it yet, so can't get to the virtual host. + +## How + +Below is an example making a curl request to an IP address with the Host being `not.relevant-land.fyi` + +```shell +curl --header 'Host: not.relevant-land.fyi' http://172.16.0.1 +``` diff --git a/mkdocs.yml b/mkdocs.yml index 9ea385a4..162f039e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -13,6 +13,8 @@ nav: - Cloudflared on Ubuntu for ssh: kb/cloudflared/cloudflared-on-ubuntu-for-ssh.md - Copybara: - Installing Copybara: kb/copybara/installing-copybara.md + - Curl: + - Curl request with Host Header: kb/curl/curl-request-with-host.md - Dependabot: - Ignore terraform module version dependabot: kb/dependabot/ignore-terraform-module-version-dependabot.md - Disk management: