Adding custom HTTP headers to Domino R9 using IBM HTTP Server (IHS)

IBM HTTP Server (IHS) was added to R9 so that we could have TLS support for HTTPS encryption. For more on how to do that see Russ Maher’s post(s) on the subject.

Under the covers IHS is really a modified version of Apache Web server and comes with some of the Apache options. It gives us the ability to add custom headers to all pages served up by the server.

You can turn IHS on by adding the following to your notes.ini – this does require a full reboot

HTTPIHSEnabled=1

When the server loads you will now see this on the console

ihs1

 

httpd.conf

httpd.conf is a configuration file which is used by the Apache HTTP Server. It stores information on various functions of the server, which can be edited by removing or adding a number sign “#” at the beginning of the line, thus setting values for each directive.

In the picture above you can see that on the Domino server there is actually a “domino.conf” file.

Adding Headers

You can add headers to the whatever.conf file in the following manner

<IfModule mod_headers.c>
Header set MarkyRoden "Was_Here"
</IfModule>

Result

Adding this to the server and restarting gives us the following

ihs2

 Conclusion

Adding custom HTTP Headers can be done a number of ways in Domino, this is a new one to me. I expect there are other things that we can do with IHS, just need to delve into them.

 

Advertisements