LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   apache log: /srv/httpd/htdocs - I don't get it (https://www.linuxquestions.org/questions/linux-server-73/apache-log-srv-httpd-htdocs-i-don%27t-get-it-4175484429/)

coldbeer 11-13-2013 07:05 AM

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.


All times are GMT -5. The time now is 08:54 AM.