Browse Source

小善基础配置

lizhen_gitee 4 months ago
parent
commit
25201a2d0d
4 changed files with 6 additions and 3 deletions
  1. 1 1
      application/extra/site.php
  2. 1 1
      gitpull.sh
  3. 1 1
      gitpullonline.sh
  4. 3 0
      public/nginx.htaccess

+ 1 - 1
application/extra/site.php

@@ -1,7 +1,7 @@
 <?php
 
 return array (
-  'name' => '最新版2024',
+  'name' => '小善潘多港湾',
   'beian' => '',
   'cdnurl' => '',
   'version' => '1.0.3',

+ 1 - 1
gitpull.sh

@@ -1,4 +1,4 @@
 sudo -uroot git reset --hard;
 sudo -uroot git pull;
-sudo -uroot chown -R www:www /www/wwwroot/jiankangyijia.huxiukeji.cn;
+sudo -uroot chown -R www:www /www/wwwroot/xiaoshan.huxiukeji.cn;
 sudo -uroot chmod -R 777 *;

+ 1 - 1
gitpullonline.sh

@@ -1,4 +1,4 @@
 sudo -uroot git reset --hard;
 sudo -uroot git pull;
-sudo -uroot chown -R www:www /www/wwwroot/xmb.tkenapp.com;
+sudo -uroot chown -R www:www /www/wwwroot/xiaoshan.huxiukeji.cn;
 sudo -uroot chmod -R 777 *;

+ 3 - 0
public/nginx.htaccess

@@ -5,4 +5,7 @@ location / {
 	if (!-e $request_filename){
 		rewrite  ^(.*)$  /index.php?s=$1  last;   break;
 	}
+}
+location ~* ^/(assets|template|uploads)/.*.(php|php5)$ {
+  deny all;
 }