LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 11-13-2013, 08:05 AM   #1
coldbeer
Member
 
Registered: May 2006
Distribution: Slackware 14.1 + multilib
Posts: 144

Rep: Reputation: 49
apache log: /srv/httpd/htdocs - I don't get it


I have reworked my question:

I have a linux server setup with apache and I'm running my web apps on them.
I'm getting errors that I am having trouble tracking down.


In my log file I get strange file not found errors in the apache error_log:

[error] [client 10.xx.73.30] File does not exist: /srv/httpd/htdocs/myapp/public/library referer ---

There is no library directory in public. The referer is one of my web app pages.

This doesn't happen with all users. It only happens about 10% of the time. I have contacted users who have generated 10+ of these types of errors all in a row - NONE of them saw anything wrong while using the web app.

In the apache access_log I can find entries like this:

GET /myapp/public/library/javascript/common.js
GET /myapp/public/library/Ajax/ajax.js

Which, correlate to the errors. Again there is no library directory in the public directory. The library directory is on the same level as the public directory so the CORRECT GET for these files is:

GET /myapp/public/../library/javascript/common.js
GET /myapp/public/../library/Ajax/ajax.js

Again, these bad calls happen only 10% of the time and no users who are generating these bad log file entries report any problems with the application. If either common.js or ajax.js wasn't successfully included on the page load, the page would crash bigtime.

I have scoured the web and I did find ONE other person who had this exact problem with no reported resolution to his problem:

http://www.webmasterworld.com/apache/4324929.htm

I don't have any .htaccess files nor am I doing any url re-writing.

I also have another web application doing the same thing only it shows a error_log entry for a .php file instead of a .js file - so its not javascript related.

Last edited by coldbeer; 11-14-2013 at 09:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/srv/www/htdocs/index.html content opensuse apache/lamp/cacti test server 127.0.0.1 Glenn D. Linux - Software 1 09-17-2013 03:30 AM
Could not able kill apache log using killall -9 httpd command arun5002 Linux - Server 1 06-19-2012 02:24 AM
Does apache need to own var/log/httpd/logfiles.log Karas Linux - Newbie 2 11-26-2009 01:25 PM
Processing apache httpd log ! plz help boon32 Programming 12 06-10-2008 10:33 PM
Strange Apache HTTPD log entry cylarz Linux - Server 6 04-03-2008 08:46 AM


All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration