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
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
 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.
You can drop IHS completly and using a “normal Apache” instead. You just have to copy the Domino modules and the Domino-specific configuration. Then, you can use a lot of usefull modules: http://httpd.apache.org/docs/2.4/mod/ . I played with it a while ago to use websockets
Nice!!! It is actually funny you said that because my mind went there as well but I wondered if you could copy the proxy modules and web sockets into IHS. I don’t know what version of apache though – I expect IHS is faaaar from the current version of apache
There are two caveats with the IHS implementation: it’s currently Windows-only and only a local IHS installation is supported (haven’t played with it to make it run on a remote box). If those restrictions get removed it’ll be real enterprise ready…
[…] I created the necessary CORS headers through my IHS domino.conf file (See this article) […]
I rarely leave remarks, however i did some searching and wound
up here Adding custom HTTP headers to Domino R9 using IBM HTTP Server (IHS)
« Xomino. And I do have a couple of questions for you if you usually do not
mind. Is it simply me or does it look as if like a few of these responses look like coming from brain dead visitors?
😛 And, if you are posting at additional sites, I would
like to keep up with anything new you have to post.
Would you list of every one of all your community sites like
your linkedin profile, Facebook page or twitter feed?
[…] have to enable IHS on Domino and then add the following line of […]