mirror of https://github.com/helloxz/onenav.git
8 changed files with 54 additions and 9 deletions
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
{ |
||||
"php_ext":"opcache", |
||||
"chmod":[], |
||||
"success_url":"/index.php", |
||||
"php_versions":"56,70,71,72,73,74", |
||||
"db_config":"", |
||||
"admin_username":"", |
||||
"admin_password":"", |
||||
"run_path":"/", |
||||
"remove_file":[], |
||||
"enable_functions":[] |
||||
} |
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
#安全设置 |
||||
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; |
Loading…
Reference in new issue