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

Go Back   LiteSpeed Support Forums > Popular web applications > vBulletin Forum > Weird "File not found" notices in logs

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2012, 10:44 AM
LiteSpeeder LiteSpeeder is offline
Senior Member
 
Join Date: Nov 2008
Posts: 65
Default Weird "File not found" notices in logs

Hello,

I've been noticing these errors in the server log viewer for a very long time. I checked/searched all of my templates, html, php, js files and even my database via sql queries but i couldn't find any clues regarding the source of the notices below.

For example there are no links referring to "http:/xx.xxxxxx.xxx/mobile.png/" which is a theme element/image. I can see the image with the correct link on my site through every browsers.

These notices are always in logs with different IPs and i think it may be related to lsws.

Does it cause any performance issues if 10% of visitors (maybe robots) request these "not found" files? How can i fix it?

Code:
INFO	[95.9.55.240:2983-0#APVH_xxxxxx.xxx] File not found [/home/xxxxxx/public_html/"http:/xx.xxxxxx.xxx/theme/buttons/printer.gif/"]

INFO	[95.9.55.240:2989-0#APVH_xxxxxx.xxx] File not found [/home/xxxxxx/public_html/"http:/xx.xxxxxx.xxx/mobile.png/"]

INFO	[95.9.55.240:2987-0#APVH_xxxxxx.xxx] File not found [/home/xxxxxx/public_html/"http:/xx.xxxxxx.xxx/theme/buttons/collapse_thead.gif/"]

INFO	[95.9.55.240:2985-0#APVH_xxxxxx.xxx] File not found [/home/xxxxxx/public_html/"http:/xx.xxxxxx.xxx/theme/buttons/sendtofriend.gif/"]
Reply With Quote
  #2  
Old 04-12-2012, 04:56 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
LSWS would not manipulate URL. maybe you have rewrite rules generating something like http://domain/"http:/xx.xxxxxx.xxx/theme/buttons/sendtofriend.gif/". enable rewrite log to see this is the case. Or your application does that.
Reply With Quote
  #3  
Old 04-13-2012, 12:16 AM
LiteSpeeder LiteSpeeder is offline
Senior Member
 
Join Date: Nov 2008
Posts: 65
How can i enable rewrite log?
Reply With Quote
  #4  
Old 04-13-2012, 08:06 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
add "RewriteLogLevel 9" in httpd.conf and restart lsws. It will be logged in /usr/local/apache/logs/error_log with '[REWRITE]' like following.

Quote:
2012-04-09 23:17:34.451 [INFO] [10.8.0.6:55091-0#APVH_test.com] [REWRITE] strip base: '/' from URI: '/'
Reply With Quote
  #5  
Old 04-14-2012, 03:53 AM
LiteSpeeder LiteSpeeder is offline
Senior Member
 
Join Date: Nov 2008
Posts: 65
I put it right after 'RewriteEngine on' in httpd.conf but it says "/usr/local/apache/conf/httpd.conf:567: Directive 'RewriteLog' is not allowed in current context." when i restart lsws.

Code:
<Directory /home/xxxxxx/public_html>
Options All -Indexes
Header unset ETag
FileETag None
RewriteEngine on
RewriteLogLevel 9
RewriteCond &#37;{HTTP_HOST} !^www\.xxxxxx\.xxx
RewriteRule (.*) http://www.xxxxxx.xxx/$1 [L,R=301]
</Directory>
Reply With Quote
  #6  
Old 04-14-2012, 08:43 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
per
http://httpd.apache.org/docs/2.0/mod...ewriteloglevel
Context: server config, virtual host

however, your
RewriteLogLevel 9
is in a "directory" context. try move it out of
<Directory /home/xxxxxx/public_html>
...
</Directory>

i.e.,

RewriteLogLevel 9
<Directory /home/xxxxxx/public_html>
Options All -Indexes
Header unset ETag
FileETag None
RewriteEngine on
RewriteCond &#37;{HTTP_HOST} !^www\.xxxxxx\.xxx
RewriteRule (.*) http://www.xxxxxx.xxx/$1 [L,R=301]
</Directory>
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 01:13 PM.



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