前言:迁移了一下WHMCS,结果忘记备份伪静态规则,重新搞了一编,扔这里做个备份
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| location ~ /admin/(client!\.php|client/(.*)|search!\.php|search/(.*)|apps|billing|setup|user|services|addons|domains|utilities|logs|help!\.php|help/license|image/(recent|upload))/?(.*)$ { rewrite ^/(.*)$ /admin/index.php?rp=/admin/$1/$2; }
location ~ /(images/em|login|password|account|store|download|knowledgebase|project_management|announcements|clientarea/ssl-certificates|user/(verification|accounts|profile|password|security|verify)|cart/(domain/renew)|cart/order|images/kb)/?(.*)$ { rewrite ^/(.*)$ /index.php?rp=/$1/$2; }
location ^~ /vendor/ { deny all; return 403; }
location ~* \.(tpl|inc|cfg)$ { deny all; }
|
2022年04月01日使用没有发现问题