Deny accss to a log file using .htaccess

#1
Hi,
I am trying to deny access to a logfile for paypal, and it seems it does not work to do so.
I have tried this:
<Files ~ "\.(log)$">
order allow,deny
deny from all
</Files>
I have also tried other similar, blocking only the particular file and nothing works.
Thanks
 

mistwang

LiteSpeed Staff
#2
It works fine in our cPanel test environment.
Can you verify whether it works properly under Apache by switching back to Apache temporarily? Just in case it is a configuration error.

If it works under apache, we will investigate.
 
#3
It works fine in our cPanel test environment.
Can you verify whether it works properly under Apache by switching back to Apache temporarily? Just in case it is a configuration error.

If it works under apache, we will investigate.
Dear mistwang,
I cant do that as I am just a hosted client.
I would have to ask my host. Not sure if related but sounds as it is to me: I found this post from august about error_log: http://www.litespeedtech.com/support/forum/showthread.php?t=5753
 
Top