LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Deny accss to a log file using .htaccess

Reply
 
Thread Tools Display Modes
  #1  
Old 12-08-2012, 10:06 AM
helenp helenp is offline
New Member
 
Join Date: Mar 2012
Posts: 7
Default Deny accss to a log file using .htaccess

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
Reply With Quote
  #2  
Old 12-08-2012, 06:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #3  
Old 12-09-2012, 02:29 AM
helenp helenp is offline
New Member
 
Join Date: Mar 2012
Posts: 7
Quote:
Originally Posted by mistwang View Post
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...ead.php?t=5753
Reply With Quote
Reply

Tags
.htaccess block files

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:20 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.