Hi Enthess,
There is no direct way to modify response headers, unfortunately.
When it comes to the Date header specifically, that is added at the very end, so that specific header is not modifiable.
That said, we have a module system in beta in OLS. What this does is it allows you to hook into the server's processing loop to modify the processing as you wish. This is accomplished in C code.
We have an example module in the downloaded directory here: ols-1.4.23/addon/example/setrespheader.c
That module sets headers according to the query string. There is also an example of removing response headers in that file.
If you're interested in proceeding further with modules, try this one out first. You will need to:
1. In that directory, run ./ccc.sh setrespheader.c
2. Move the .so to the server's module directory mv setrespheader.so /usr/local/lsws/modules
3. Enable the module in the configurations per instructions
here. (I know that web admin is outdated, but the instructions should be similar)
Let me know if you have any questions about this! I understand that it's a rather complex process to do what seems like a simple thing, but header modification is just not available at the moment. Perhaps in the future it will be made available, but it will probably be a while.
Cheers,
Kevin