pay/nginx.txt
2025-11-28 10:08:12 +08:00

14 lines
332 B
Plaintext

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