Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

https://developers.google.com/speed/docs/mod_pagespeed/configuration


My mod_status.conf:

<IfModule mod_status.c>

  <Location /server-status>
    SetHandler server-status

    Order Deny,Allow
    Deny from all

    Allow from 127.0.0.1 
    # My allowed ips here
  </Location>

</IfModule>
share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.