Author |
|
bitazar
Joined: 02 May 2007 Posts: 22
|
Posted: Sun 20 May '07 23:34 Post subject: Mod_status |
|
|
i installed mod_status by adding to conf :
LoadModule status_module modules/mod_status.so
<Location \server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Location>
but i can not see the results ,i also looked at htdocs but nothing found ,apache runs without any error ,so what happened ?
how can i see the result |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Mon 21 May '07 5:58 Post subject: |
|
|
You should use forward slashes / , not backslashes \ , in httpd.conf.
Code: | <Location /server-status> |
-tom- |
|
Back to top |
|
bitazar
Joined: 02 May 2007 Posts: 22
|
Posted: Mon 21 May '07 11:09 Post subject: |
|
|
I also changed it into
<Location /server-status>
but i can't see the result |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 21 May '07 15:00 Post subject: |
|
|
Is there anything about that in your error log? |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Mon 21 May '07 15:28 Post subject: |
|
|
If you request :http://127.0.0.1/server-status in a browser running on the same machine as Apache, do you see anything at all?
A blank screen? An error message?
After you try to view the status in your browser - is there any entry in your \logs\access.log file which looks like this? Quote: | 127.0.0.1 - - [21/May/2007:09:17:05 -0400] "GET /server-status HTTP/1.1" 200 5084 |
-tom- |
|
Back to top |
|
bitazar
Joined: 02 May 2007 Posts: 22
|
Posted: Mon 21 May '07 22:19 Post subject: Mod_status |
|
|
thanx for reply i can't see http://127.0.0.1/server-status ,it says access forbiden but when i open the folder server-status nothing there, but in log file you noticed there are lines as you wrote
Quote: | GET /server-status HTTP/1.1" 403 |
|
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Mon 21 May '07 23:11 Post subject: |
|
|
Try temporarily changing the Allow directive to:to see if this eliminates the 403 error.
If this fixes the problem, then Apache is not recognizing your browser as IP address 127.0.0.1.
You could try adding your browser's real IP address. For example, if your IP address is 192.168.0.3, try: Code: | Allow from 127.0.0.1 192.168.0.3 |
You can look in \logs\access.log to see what address Apache thinks your browser is. |
|
Back to top |
|
bitazar
Joined: 02 May 2007 Posts: 22
|
Posted: Tue 22 May '07 21:34 Post subject: |
|
|
I did it but it says
Quote: | GET /server-status HTTP/1.1"@, 403@, |
|
|
Back to top |
|