location / {
 if (!-e $request_filename) {
 rewrite ^(.[a-zA-Z0-9\-\_]+).html$ /index.php?mod=$1 last;
 rewrite ^pay/(.*)$ /pay.php?s=$1 last;
 break;
 }
}
location ^~ /includes {
 deny all;
}
location ^~ /plugins {
 deny all;
}