Rewrite or delete Server header using Citrix ADC CPX

A few days ago, I wrote a blog post about Using Citrix ingress controller with Azure Kubernetes Service. In this post, I’m going to show how easy it is to use the Custom Resource Definitions from Citrix to replace the Server header in an HTTP response, as well as removing it completely.

If you would like to know more about Custom Resource Definitions, see the Custom Resources documentation on If you want to know more about what you can do with them from Citrix, see this developer documentation Using Rewrite and Responder policies in Kubernetes.

If you deploy the example I’ve used in my blog post, you should have a few apache PODs up an running. These will be using a Server header looking something like this:

Apache Server Header

In our first example, we will rewrite it to show as asterisks instead of Apache:

When this is applied, you will see the following instead:

Apache Server Header Rewritten

You can also remove it completely, by using the following example instead to delete the header:

And now will it instead be deleted:

Apache Server Header Deleted

These are just two easy examples of how you can get the cloud native experience using Citrix ADC CPX and the Citrix ingress controller.

Feel free to comment here or on GitHub if you have any questions or feedback!

Disclaimer: All information on this blog is offered "as is" with no warranty. It is strongly recommended that you verify all information and validate all scripts in isolated test environments before using them in production environments.