文件操作 - infinitoverso.com.conf
返回文件管理
返回主菜单
删除本文件
文件: /mnt/ShareFiles/infinitoverso.com.conf
编辑文件内容
map $request_uri $infinitoverso_com_cache_uri { default $request_uri; ~^([^?]+)\?(.*)subscriber_id=[^&]*&?(.*)$ "$1?$2$3"; ~^([^?]+)\?(.*)&subscriber_id=[^&]*$ "$1?$2"; ~^([^?]+)\?subscriber_id=[^&]*$ "$1"; } # HTTP 80 server { listen 80; listen [::]:80; server_name infinitoverso.com www.infinitoverso.com; return 301 https://infinitoverso.com$request_uri; } # HTTPS 443 server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name infinitoverso.com www.infinitoverso.com; root /var/www/87ffe9fc3f40afd3638adfeeb1f0d95f/Web; index index.php; set $skip_cache 0; # Bloquear cache para os User-Agents específicos if ($is_excluded_ua = 1) { set $skip_cache 1; } # Não fazer cache se o usuário estiver logado ou visualizar uma página de adminis> if ($request_method = POST) { set $skip_cache 1; } # Verifica se é uma requisição especial do wordpress if ($request_uri ~* "/wp-admin/|/xmlrpc.php|/wp-login.php|/wp-cron.php") { set $skip_cache 1; } if ($http_cookie ~* "wordpress_logged_in_|wp-postpass_") { set $skip_cache 1; } location / { try_files $uri $uri/ /index.php?$args; } location ~* \.(ico|css|js|gif|jpe?g|png|woff2?|ttf|svg|mp4|webp|avif|eot|otf|ogg|mp3|wav)$ { expires max; log_not_found off; access_log off; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_read_timeout 240; fastcgi_pass unix:/run/php/php8.4-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_cache_bypass $skip_cache; fastcgi_no_cache $skip_cache; fastcgi_cache WORDPRESS; fastcgi_cache_key "$scheme$request_method$host$infinitoverso_com_cache_uri"; fastcgi_cache_valid 200 20m; fastcgi_cache_use_stale error timeout invalid_header http_500; fastcgi_ignore_headers Cache-Control Expires Set-Cookie; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires max; log_not_found off; } client_max_body_size 256M; # SSL ssl_certificate /var/ssl/infinitoverso.com/fullchain.pem; ssl_certificate_key /var/ssl/infinitoverso.com/privkey.pem; ssl_session_cache builtin:1000 shared:SSL:10m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; # HEADERS add_header Strict-Transport-Security "max-age=31536000"; #Logs #access_log /var/log/nginx/https/infinitoverso.com-access.log combined; #error_log /var/log/nginx/https/infinitoverso.com-error.log; # Desabilitando Xmlrpc.php - Para Sites Wordpress location = /xmlrpc.php { deny all; access_log off; log_not_found off; return 444; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件