Create /etc/e-smith/templates-custom/httpd/vhost-extra/15tracktrace with following content.
#
# 15tracktrace - Track and trace rewrite rule
#
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
Any virtual host should include the rewrite rule after expanding the template. I didn’t test if this works for your track and trace case but this should give you an idea about templating your virtual hosts.
After expand-template /etc/httpd/conf.d/virtualhosts.conf your virtualhost directives look like this:
Honestly I don’t know much about this track and trace thing but setting default security settings may affect other apps and needs some discussion. For now I’d work with custom templates.
Maybe it’s enough to just add the rewrite rule to httpd.conf but I read the following:
Please note that by default, rewrite configurations are not inherited across virtual servers. Add RewriteEngine On to each virtual host…
Hi @zimny
I saw you’re raising few security concerns about NS default configuration and as @davidep any contribute to improve current situation is welcome!
We are following upstream defaults, but this doesn’t mean we couldn’t hardening it
Do you have a public document or procedure are you using to hardening your installation?
Maybe we could create a special section inside the manual.
Please, also feel free to the raising discussion about a very similar feature: GDPR and SSL hardening