Keep Server Online
  
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
  
or
  
 
  
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
  
Thank You! Steffen
  
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |    |   
 | 
     Topic: Permissions and server-status ? | 
 |   
| Author | 
  | 
 
edwardsmarkf
 
 
  Joined: 20 Feb 2013 Posts: 26 Location: cottonwood, az
  | 
 Posted: Mon 24 Mar '14 23:57    Post subject: Permissions and server-status ? | 
     | 
 
  | 
 
hello all-
 
 
i am trying to get server-status to display. when i have the following set:
 
 
<Location /server-status>
 
    SetHandler server-status
 
    Order deny,allow
 
    Deny from all
 
    Allow from .myServer.com
 
</Location>
 
 
i get this message:
 
 
Forbidden
 
 
You don't have permission to access /server-status on this server.
 
 
but when i change it to look like this:
 
 
<Location /server-status>
 
    SetHandler server-status
 
    ###Order deny,allow
 
    ###Deny from all
 
    Allow from .myServer.com
 
</Location>
 
 
it works fine.   can anybody help me understand why the first option might not be working?
 
 
thank you! | 
 
  | 
 
| Back to top | 
 | 
 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7442 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Tue 25 Mar '14 17:48    Post subject:  | 
     | 
 
  | 
 
| Which apache version do you use? | 
 
  | 
 
| Back to top | 
 | 
 
edwardsmarkf
 
 
  Joined: 20 Feb 2013 Posts: 26 Location: cottonwood, az
  | 
 Posted: Thu 27 Mar '14 21:22    Post subject:  | 
     | 
 
  | 
 
Server version: Apache/2.2.15 (Unix)
 
Server built:   Aug 25 2013 11:27:22 | 
 
  | 
 
| Back to top | 
 | 
 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7442 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Fri 28 Mar '14 17:02    Post subject:  | 
     | 
 
  | 
 
 	  | Code: | 	 		  
 
<Location /server-status>
 
SetHandler server-status
 
Order deny,allow
 
Deny from all
 
Allow from 192.168.50.1
 
</Location> 
 
 | 	  
 
 
For 192.168.50.1 use the IP adress you have or as a range 192.168 | 
 
  | 
 
| Back to top | 
 | 
 
 
 
 
 | 
 
 
 |  
 
 |  
  |   
 |