

The request looks like this: GET / HTTP/1.1 Here is an example of an HTTP request made with the previous custom-header directive in place.

Alternately we can add the directive to any directory by placing it in the directory's local. To fine-tune that behavior, we can target specific requests using Apache's Files or Filesmatch. htaccess file, Apache will send the custom header for every request. If we add that previous example to our site's root. Setting the header parameter and value to "parameter" and "value", respectively.Instructing Apache to add a header named "Custom-Header".To add a custom header, we use Apache's versatile Header directive, like so: Header add Custom-Header "parameter=value" This is useful for many things, especially testing and troubleshooting various types of functionality, both server-side and client-side. So when someone or something requests your web page(s), Apache will return your custom header, along with whatever other headers it usually sends. In this tutorial, we're talking about custom HTTP headers, which look like this: Estimated 30 seconds to read and add your own custom header. This tutorial explains how to quickly add custom HTTP headers using a bit of.
