How enable mod_security for one site?

<IfModule mod_security2.c>
    SecRuleEngine On
</IfModule>

i cant edit <VirtualHost file: *

DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS*

either .htaccess or use custom template.

i try in .htaccess

<IfModule mod_security2.c>
    SecRuleEngine On
</IfModule>

Error: .htaccess: SecRuleEngine not allowed here

Then create a custom template

how create?

in /usr/local/hestia/data/templates/web/apache2
cp default.stpl myteample.stpl
cp default.tpl myteample.stpl

and not see in list
111111

That should be:

cp default.tpl myteample.tpl

tanks all. its work.
last question how enable mod-security for Hestia Web panel(self)?

1 Like

Not really posible as it runs on Nginx…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.