From 52000c250b96226c7ff53028d7aadbf423b0d1bf Mon Sep 17 00:00:00 2001 From: chenc <1458513@qq.com> Date: Thu, 8 Aug 2024 10:07:23 +0800 Subject: [PATCH] add optimize --- openresty/config/conf/nginx.conf.example | 4 ++-- openresty/config/vhost/default.conf.example | 6 +++--- php/php73/cron/15min/.gitkeep | 0 php/php73/cron/daily/.gitkeep | 0 php/php73/cron/hourly/.gitkeep | 0 php/php73/cron/minute/.gitkeep | 0 php/php73/cron/monthly/.gitkeep | 0 php/php73/cron/weekly/.gitkeep | 0 8 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 php/php73/cron/15min/.gitkeep create mode 100644 php/php73/cron/daily/.gitkeep create mode 100644 php/php73/cron/hourly/.gitkeep create mode 100644 php/php73/cron/minute/.gitkeep create mode 100644 php/php73/cron/monthly/.gitkeep create mode 100644 php/php73/cron/weekly/.gitkeep diff --git a/openresty/config/conf/nginx.conf.example b/openresty/config/conf/nginx.conf.example index 17d8524..8c93335 100644 --- a/openresty/config/conf/nginx.conf.example +++ b/openresty/config/conf/nginx.conf.example @@ -57,7 +57,7 @@ lua_shared_dict my_limit_req_store1 100m; #brotli on; #brotli_comp_level 6; #brotli_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml; - + more_set_headers 'Server:Nginx Chenc.Dev'; ##If you have a lot of static files to serve through Nginx then caching of the files' metadata (not the actual files' contents) can save some latency. #open_file_cache max=1000 inactive=20s; #open_file_cache_valid 30s; @@ -70,7 +70,7 @@ lua_shared_dict my_limit_req_store1 100m; listen [::]:80; http2 on; server_name _; - access_log /data/wwwlogs/access_nginx.log combined; + access_log /data/wwwlogs/access_nginx_$logdate.log combined; root /data/wwwroot/default; index index.html index.htm index.php; #error_page 404 /404.html; diff --git a/openresty/config/vhost/default.conf.example b/openresty/config/vhost/default.conf.example index d90f978..ae534d4 100644 --- a/openresty/config/vhost/default.conf.example +++ b/openresty/config/vhost/default.conf.example @@ -25,8 +25,8 @@ server { # if ($ssl_protocol = "") { return 301 https://$host$request_uri; } server_name *.abchen.net; - access_log /data/wwwlogs/abchen.net_nginx.log combined; - error_log /data/wwwlogs/error.abchen.net_nginx.log; + access_log /data/wwwlogs/abchen.net_nginx_$logdate.log combined; + error_log /data/wwwlogs/error.abchen.net_nginx_$logdate.log; index index.html index.htm index.php; root /data/wwwroot/default; @@ -52,7 +52,7 @@ server { # proxy_pass http://php81:22349; # } location ~ [^/]\.php(/|$) { - fastcgi_pass php81:9000; + fastcgi_pass php83:9000; #fastcgi_pass unix:/dev/shm/php73-cgi.sock; fastcgi_index index.php; fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/"; diff --git a/php/php73/cron/15min/.gitkeep b/php/php73/cron/15min/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/php/php73/cron/daily/.gitkeep b/php/php73/cron/daily/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/php/php73/cron/hourly/.gitkeep b/php/php73/cron/hourly/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/php/php73/cron/minute/.gitkeep b/php/php73/cron/minute/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/php/php73/cron/monthly/.gitkeep b/php/php73/cron/monthly/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/php/php73/cron/weekly/.gitkeep b/php/php73/cron/weekly/.gitkeep new file mode 100644 index 0000000..e69de29