php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9060 server-info and server-status handlers refuse to work
Submitted: 2001-02-01 17:58 UTC Modified: 2001-05-27 22:54 UTC
From: apross at usa dot net Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.4pl1 OS: Linux Slackware 4.0 ( libc5 base
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 + 8 = ?
Subscribe to this entry?

 
 [2001-02-01 17:58 UTC] apross at usa dot net
server status returns a 403 forbidden with handler enabled and proper access conditions met.

httpd.conf excerpt

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from XXX.xxx.XXX.xxx
</Location>

XXX.xxx.XXX.xxx is only an example, I have a real IP entered.

./configure --with-config-file-path=/etc --with-apache=../apache_1.3.17
--enable-safe-mode --with-jpeg-dir=/usr --with-tiff-dir=/usr
--with-zlib-dir=/usr --with-pdflib=/usr/local --with-png-dir=/usr
--with-gdbm --without-gd --with-imap=/usr/local --with-mysql=/usr
--with-zlib --enable-sysvsem --enable-sysvshm --enable-memory-limit
--enable-track-vars --with-system-regex --disable-display-source

An strace of httpd -X during the failure.

stat("/usr/local/apache/htdocs/server-status", 0x82a8ebc) = -1 ENOENT (No such file or directory)
time(NULL)                              = 981067708
write(15, "[Thu Feb  1 17:48:28 2001] [erro"..., 91) = 91
alarm(300)                              = 0
alarm(0)                                = 300
alarm(300)                              = 0
alarm(0)                                = 300
write(3, "HTTP/1.1 403 Forbidden\r\nDate: "..., 494) = 494
time(NULL)                              = 981067708

Apache compiled w/o php does not exhibit this behavior.

PhP functions perfectly but apache is exhibiting weird directory and AllowOverride processing as well.

Adding  AllowOverride AuthConfig directives causes apache to search for non essential .htaccess files as well.

kernel 2.2.16
Linux C Library        5.4.46


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-27 22:54 UTC] sniper@php.net
Both work just fine for me. With PHP 4.0.6-dev and Apache 1.3.20.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 11:01:32 2024 UTC