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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Denying access to error_log not working?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2012, 11:12 AM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
Default Denying access to error_log not working?

cPanel has the following in httpd.conf to prevent direct access to error_log (which is a good thing!)

<Files ~ "^error_log$">
Order allow,deny
Deny from all

Satisfy All
</Files>

However, I noticed on my Litespeed boxes, that doesn't seem to work, while it works fine on my Apache boxes. Can someone confirm that same behavior happens on boxes other than my own? You can test by finding a error_log in a customer directory, and try to go to it via your web browser.
Reply With Quote
  #2  
Old 03-08-2012, 11:40 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
That configuration is ignored by LiteSpeed for the sake of performance.

you can block access to those files with a rewrite rule or security rule.

if it is a security threaten, just disable PHP error logging to that file, everything should be Apache log file and user can access those errors from cpanel.
Reply With Quote
  #3  
Old 03-08-2012, 11:43 AM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
Quote:
Originally Posted by mistwang View Post
That configuration is ignored by LiteSpeed for the sake of performance.

you can block access to those files with a rewrite rule or security rule.

if it is a security threaten, just disable PHP error logging to that file, everything should be Apache log file and user can access those errors from cpanel.
Are you sure? This one works:

<Files ~ "^spam.html$">
Order allow,deny
Deny from all

Satisfy All
</Files>

Why wouldn't error_log not work?
Reply With Quote
  #4  
Old 03-08-2012, 11:45 AM
CodyRo CodyRo is offline
New Member
 
Join Date: Mar 2011
Posts: 3
Quote:
Originally Posted by optize View Post
Are you sure? This one works:

<Files ~ "^spam.html$">
Order allow,deny
Deny from all

Satisfy All
</Files>

Why wouldn't error_log not work?
He said it's explicitly ignored for performance.

@George what sort of performance hit is this really taking? In a shared environment it's usual to have PHP error logging enabled.

In the interim you could adjust the rule so it's not ignored. IE removing the $ regex or using a FilesMatch directory which appears to not be ignored.
__________________
Quality Shared and VPS Hosting
Hawk Host Inc. Proudly serving websites since 2004
Frog Host - Unlimited possibilities
PHP 5.2.x & PHP 5.3.x Support!
Reply With Quote
Reply

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:16 PM.



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