for querying the apache2 status ??
I've set up an apache2 on my ubuntu server - just for testing purposes...
everything seems to be working just fine...BUT when I run sudo apache2ctl status I get the following error on the command line: "You don't have permission to access /server-status on this server"
I've checked the apache's error log and found this:
[error] [client ::1] client denied by server configuration: /var/www/server-status
I thought that the problem is in my Vhost config...especially the "Location" part...it's set as follows:
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1 127.0.1.1 localhost
</Location>
so I started looking into this more closely and made few tcpdumps which I checked later in wireshark....
I made 2 basic tests:
1.) running sudp apache2ctl status
2.) accessing the server-status page from the browser which is running ON THE SAME machine on which the apache is running...
results:
1.) in tcpdump I can see that apache2ctl is using ipv6 ??? for querying the status of the apache2...WHY ?
2.) everything seems to be "normal" here....I can access sever-status from the browser (RUNNING ON THE SAME MACHINE ON WHICH APACHE2 IS RUNNING) normally and im not seeing anything abnormal in tcpdump either...why should I anyway
so my question is...WHY is apache2ctl using ipv6 when querying the apache status with apache2ctl status command ? is there a way how to force it to use ipv4 ?? IBecause I SUSPECT that that might be the reason why I'm getting the error mentioned at the start of this thread...
THanks a lot for help to everyone!
PS1: ataching 2 screenshots from those tcpdumps I mentioned....check the ip protocol version
PS2: when I set the Location directive to Allow from all everything is working just fine - but I DONT WANT to allow the access to server-status to all...



Adv Reply


Bookmarks