Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

It's possible to priorize /server-status front another rewrite rules? For example the next ones don't let the /server-status works:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI}      !\.
RewriteRule ^.*$ index.php [NC,L]

I have to add this to the .htaccess to don't enter to the php project:

RewriteRule ^server-status$ - [L]

With mod_pagespeed of google, their statistics page works without adding them to the project .htaccess: /mod_pagespeed_statistics

My mod_status.conf:

<IfModule mod_status.c>

  <Location /server-status>
    SetHandler server-status

    Order Deny,Allow
    Deny from all

    Allow from 
    # My allowed ips here

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.