i'm got a problem when i was trying to enable stub_status module on my wordpress based site. the following is my configuration in nginx.conf.
location /status {
stub_status on;
access_log off;
}
if (!-e $request_filename){
rewrite ^(.+)$ /index.php?q=$1 last;
}
my problem is i can access the status page if i remove the wordpress rewrite rule. if the rewrite rule exist, the status page not works. does anyone know how to fix this problem?