Looks like the configuration I made is reactivated in a different configuration file again.
I tried to put 000_werk_17348.conf in
/opt/omd/sites/sitename/etc/apache/conf.d
/opt/omd/apache
/etc/httpd/conf.d
and restarted httpd every time.
What is the correct path to put the 000_werk_17348.conf configuration file?
Didn’t solved my initial question, but I managed to get a workaround running:
Changed the file /opt/omd/sites/vwif/etc/check_mk/apache.conf
<Directory /omd/sites/vwif/share/check_mk/agents>
# https://checkmk.com/werk/17348
# Werk #17348: Disable access to check_mk/agents/
#
# Options +Indexes => Options -Indexes
Options -Indexes
Order deny,allow
allow from all
</Directory>
# Same for the local hierarchy
Alias /vwif/check_mk/local/agents /omd/sites/vwif/local/share/check_mk/agents
<Directory /omd/sites/vwif/local/share/check_mk/agents>
# https://checkmk.com/werk/17348
# Werk #17348: Disable access to check_mk/local/agents/
#
# Options +Indexes => Options -Indexes
Options -Indexes
Order deny,allow
allow from all
</Directory>