optimize
This commit is contained in:
chenc 2024-08-08 10:07:23 +08:00
parent dce50acea6
commit 52000c250b
8 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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/";

View File

View File

View File

View File

View File

View File