From 1170b1643703351fada53dbe6196f36a0acf8b1c Mon Sep 17 00:00:00 2001 From: liuchen864 <23082234@qq.com> Date: Thu, 7 Mar 2024 11:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89nginx=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 8 -------- 1 file changed, 8 deletions(-) diff --git a/nginx.conf b/nginx.conf index baea1d58d..c2afefb0f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -12,8 +12,6 @@ http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for" "$request_time $upstream_response_time"'; - - proxy_cache_path /opt/nginx_cache/ levels=1:2 keys_zone=my_zone:10m inactive=300s max_size=5g; access_log logs/access.log main; sendfile on; #tcp_nopush on; @@ -42,16 +40,10 @@ http { proxy_set_header X-Forwarded-For $http_x_forwarded_for; } location /profile/ { - proxy_cache my_zone; - proxy_cache_valid 200 304 12h; - proxy_cache_key $host$uri$is_args$args; alias /opt/profile/; index index.html index.htm; } location / { - proxy_cache my_zone; - proxy_cache_valid 200 304 12h; - proxy_cache_key $host$uri$is_args$args; try_files $uri $uri/ /index.html; root /opt/sfms3.0; index index.html index.htm;