Disable ModSecurity on default vhost

manoaratefy

Well-Known Member
Nov 17, 2018
49
4
8
Madagascar
cPanel Access Level
Root Administrator
Good morning,

I need to serve something on my default vhost (the vhost who serves /var/www/html). How to disable ModSecurity in this area? .htaccess disabling not working (
SecFilterEngine Off)
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,482
565
273
cPanel Access Level
Root Administrator
Hey there! We don't allow .htaccess files in the /var/www/vhosts directory as that gets used for cPanel functions, like AutoSSL. While you can serve some basic content from this directory, we don't encourage that either as all content should come from domain vhosts.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,482
565
273
cPanel Access Level
Root Administrator
Sure - you may find the details in this thread helpful for that, and you might need to test a few combinations of things to get it working how you are expecting, but with the right settings that should be doable: