mirror of https://github.com/helloxz/onenav.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
387 B
15 lines
387 B
2 years ago
|
#安全设置
|
||
|
location ~* ^/(class|controller|db|data|functions|templates)/.*.(db3|php|php5|sql)$ {
|
||
|
return 403;
|
||
|
}
|
||
|
location ~* ^/(data)/.*.(html)$ {
|
||
|
deny all;
|
||
|
}
|
||
|
location /db {
|
||
|
deny all;
|
||
|
}
|
||
|
|
||
|
#伪静态
|
||
|
rewrite ^/click/(.*) /index.php?c=click&id=$1 break;
|
||
|
rewrite ^/api/(.*)?(.*) /index.php?c=api&method=$1&$2 break;
|
||
|
rewrite /login /index.php?c=login break;
|