location ~ /(lib|plugins|source|templates)/.*\.(php|Php|PHp|PHP|phP|pHP|pHp|PhP)?$ {deny all;}一定要...