Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to add server-status location directive under one of my virtual host, however i'm getting a 403 Access Forbidden when browsing to Is it legal to put the Location Directive under a virtual host?

Edit #1: Full vhost config

<VirtualHost *:80>
  # Admin email, Server Name (domain name) and any aliases

  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html index.php
  DocumentRoot /home/cairocubicles/web/
    <Directory /home/cairocubicles/web/>
        Order Allow,Deny
        Allow from all
        Options Indexes FollowSymLinks
        AllowOverride All
        AcceptPathInfo On

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

  # Custom log file locations
  LogLevel warn
  ErrorLog  /home/cairocubicles/web/

share|improve this question
Where are you trying to access the status page? Or more specifically, are you trying to access the status page from the exact IP that resolves to (Apache must see the connection as coming from this IP)? – Shane Madden Nov 16 '12 at 7:18
up vote 2 down vote accepted

Yes, the documentation states that location can be used in server and vhost contexts.

Check the underlying file system to ensure that the webserver has suitable permissions to access the files and directories.

Your update shows that you are only allowing access from Ensure that the IP address for resolves to the address of the machine you are connecting from. If it does and the webserver is on the same machine as then you should check the logs to see what IP address apache thinks you're connecting from and add it to the list (you are most likely connecting via the loopback interface) e.g.

Allow From
share|improve this answer
@lain but i keep getting a 403 Forbidden, the website works fine expect for, i added the full vhost in the question above – Yehia A.Salam Nov 15 '12 at 23:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.