.htaccess vs apache server-status

I have a problem with Drupal's original .htaccess file. If i put this file into my apache docroot ( / ) for clean URL-s, i cannot reach the apache statistic page (ExtendedStatus On). From localhost -> http://mydomain/server-status -> I get "page not found" message. If i remove .htaccess file, i can reach the page.

Suspected lines are:

# Rewrite current-style URLs of the form 'index.php?q=x'.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

If i uncomment these lines, my problem is gone.

Any idea? Workaround?

Thanks.

Comments

I'm interested in this as

I'm interested in this as well...

I've been looking into it to get the munin Apache module working (munin polls the server-status URL) but Drupal replies with a 404. Haven't found a way around it yet.

  • Login or register to post comments

just add a line

I had the same problem and looked at:http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

I just added a line about /server-status

  # Rewrite current-style URLs of the form 'index.php?q=x'.
  RewriteCond %{REQUEST_URI} !=/server-status
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

你可能感兴趣的:(.htaccess vs apache server-status)