Need Help ASAP to add and configure .htaccess because it is missing

#1
I am running litespeed with whm/cpanel and I am getting a 403 error on a site that needs the following added to the site:

<FilesMatch "\.(ico|pdf|flv|swf|js|mjs|css|gif|png|jpg|jpeg|txt|woff2|woff)$">
Order Allow,Deny
Deny from all
</FilesMatch>

But it is missing from the domain.

How do I fix this
 
#2
Also get the following error in litespeed web server:
2025-03-09 16:27:43.287248ERROR[3605415] [T0] [APVH_speedyturtlecoco_Suea-php82:]: Failed to start one instance. pid: -54
 

abk

Administrator
Staff member
#3
With the .htaccess rule, you are blocking access to the file extensions listed in FilesMatch directive to everyone. Switch to Apache from our WHM plugin and see if the behavior is the same on Apache. If this is exclusive to LSWS, then share more technical details on what you are trying to achieve.

For the "Failed to start one instance" error, check your server error_log/stderr.log for more details.
 
Top