Apache 1.3.14: Sporadic 403 and 404 error messages

Apache 1.3.14: Sporadic 403 and 404 error messages

Post by Ed Sext » Fri, 10 Aug 2001 11:28:45



Hello-

###
# Quick Summary:

Apache is sporadically reporting "directory index forbidden" and "file
does not exist" errors.  The files are present, permissions okay, and
not a broken symlink.

###
# Environment:

OS              - Redhat 7.0 | kernel 2.2.19-7.0
Webserver       - Apache 1.3.14 | Using NameVirtualHost
Load Balancer   - Arrowpoint (cs80)
Caching         - None.
NAT             - cisco router performing NAT translation to private IPs.
Errors          - From error_log (exact except company name is xxx'd out,
sorry)

---------------------
==> /var/log/httpd/access_log <==
205.125.226.xxx - - [08/Aug/2001:17:24:31 -0700] "GET
/pcmail/img/xxx_logo.gif HTTP/1.0" 404 292
==> /var/log/httpd/error_log <==
[Wed Aug  8 17:24:31 2001] [error] [client 205.125.226.xxx] File does
not exist: /home/apache/xxx.login/pcmail/img/xxx_logo.gif
---------------------
==> /var/log/httpd/access_log <==
10.0.23.101 - - [08/Aug/2001:16:42:18 -0700] "HEAD / HTTP/1.0" 403 0
==> /var/log/httpd/error_log <==
[Wed Aug  8 16:42:18 2001] [error] [client 10.0.23.101] Directory
index forbidden by rule: /home/apache/xxx.reg/
---------------------

###
# Description:

1. loading a URL of http://register.xxx.com occasionally fails
and generates a forbidden by rule error.

2. loading a URL of http://login.company.com/login/logo.gif
occasionally fails and generates file does not exist error.

###
# Reproduceable:

Yes.

I am able to reproduce #2 by running apache bench this way:  
ab -n10 http://login.company.com/login/logo.gif.  9 connections are
successful, 1 fails.

Our NOC has a monitoring script which checks to see if a certain URL
is reachable, occasionally it reports the forbidden error.  Other
times is it successful.

Users are experiencing when browsing, that certain frames will not
load images, giving the file not found or forbidden error.
They click reload, and the images show up fine.

The browser they are using is proprietary which probably does not do
any caching. it runs on a 'set top box' of sorts with no physical
storage space.

###
# Pertinent Apache configuration:

NameVirtualHost 10.0.101.12

<VirtualHost 10.0.101.12>
    DocumentRoot /home/apache/xxx.login
    ServerName home.xxx.com
</VirtualHost>

<VirtualHost 10.0.101.12>
    DocumentRoot /home/apache/xxx.reg
    ServerName register.xxx.com
</VirtualHost>

DocumentRoot "/home/apache/xxx.login"
UseCanonicalName On
HostnameLookups Off

###
# Possible Causes ?

I am trying to narrow down the problem, currently I am thinking that
it could be:

1.  NameVirtualHost becomes confused and does not serve up the proper
named based virtual hosting, which would force loading from
DocuentRoot thus file not found.

2.  DNS is occasionally fails to resolve when loading a page.

3.  Load balancing issue.

4.  Problem with 1.3.14 and I should upgrade to latest.

I hope I have provided enough detail, thank you in advance for any
ideas you may have!

I will summarize back to the newsgroup.

Sincerely-

Ed Sexton

 
 
 

Apache 1.3.14: Sporadic 403 and 404 error messages

Post by Joshua Sliv » Fri, 10 Aug 2001 12:11:12



> Apache is sporadically reporting "directory index forbidden" and "file
> does not exist" errors.  The files are present, permissions okay, and
> not a broken symlink.

Thanks for providing all the info.  It makes things much easier.
Unfortunately, I don't have an easy answer.

Since the error log shows that Apache is looking in the correct
place for the files (right?), it is highly unlikely that this
is a problem with virtual hosting.  If apache was confused
about the vhosts, then the error log should show it looking
in the wrong place.

My first guess is that the filesystem is returning bad results
to apache.  Is this a local filesystem or NFS or something else?

Another possibility: are you using any modules other than
the ones that come with the base server?

Quote:> 4.  Problem with 1.3.14 and I should upgrade to latest.

That is usually a good idea, although I can't think of anything
specific that has changed and would affect your problem.

--
Joshua Slive

http://slive.ca/

 
 
 

1. Apache 1.3.14 Error Message downloading gif

When one of our users tried downloading a page containing several gif's he
was returned a page that contained:

0000003260 00001 f 0000309906 00000 n 0000309968 00000 n 0000003261 00001 f
0000003262 00001 f
[...]
0000003265 00001 f 0000310038 00000 n 0000310100 00000 n 0000003268 00001 f
0000310170 00000 n 0000310232 00000 n 0000003271 00001 f 0000310302 00000 n
0000310364 00000 n 0000003274 00001 f 0000310434 00000 n 0000310496 00000 n
0000003277 00001 f 0000310566 00000 --3ade1a3d282d-- HTTP/1.1 304 Not
Modified Date: Wed, 18 Apr 2001 22:50:47 GMT Server: Apache/1.3.14 (Unix)
mod_ssl/2.7.1 OpenSSL/0.9.6 Connection: Keep-Alive Keep-Alive: timeout=15,
max=99 ETag: "10f4ea-3a4a-3ade14f1"
This seems to be a failure to fully download the gif file, but I'm not sure.
Can anyone tell me what the cause of this could be, where I could find this
out on my own (other than bugging you all), and if this is something that
should be worried about.  The page containing the gif's is an external page
and is meant for potential customers, problems with the page loading could
be really bad for us.

Any help is appreciated.

Thanks,

-Mark

2. New install of Solaris 2.6 and ethernet doesn't appear to work

3. Error with ServletExex and Apache 1.3.14

4. KNode question

5. 403/404 errors

6. source code control

7. Apache 1.3.14 / Netware Perl/CGI PROBLEM, Please help!

8. How to start apps when logging in.

9. Help installing mod_perl on Apache 1.3.14

10. Apache 1.3.14 woes

11. PDF problems with Apache 1.3.14

12. Apache 1.3.14 Released

13. apache 1.3.14 - rewrite problem?