admin 管理员组

文章数量: 1086019


2023年12月18日发(作者:百度站长平台是什么)

application/rss+xml application/+json application/-fontobject application/x-font-ttf application/x-web-app-manifest+jsonapplication/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plaintext/vcard text/ text/vtt text/x-component text/x-cross-domain-policy;

# Uncomment if your server is build with the ngx_pagespeed module # This module is currently not supported. #pagespeed off;

error_page 403 /core/templates/; error_page 404 /core/templates/;

location / { rewrite ^ /$uri; }

location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ { deny all; } location ~ ^/(?:.|autotest|occ|issue|indie|db_|console) { deny all; }

location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34]).php(?:$|/) { include fastcgi_params; fastcgi_split_path_info ^(.+.php)(/.*)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param HTTPS on; #Avoid sending the security headers twice fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true; fastcgi_pass php-handler; fastcgi_intercept_errors on; fastcgi_request_buffering off; }

location ~ ^/(?:updater|ocs-provider)(?:$|/) { try_files $uri/ =404; index ; }

# Adding the cache control header for js and css files # Make sure it is BELOW the PHP block location ~* .(?:css|js)$ { try_files $uri /$uri$is_args$args; add_header Cache-Control "public, max-age=7200"; # Add headers to serve security related headers (It is intended to # have those duplicated to the ones above) # Before enabling Strict-Transport-Security headers please read into # this topic first.

8.5、设置memcached做nextcloud缓存后端yum -y install memcachedvim /etc/sysconfig/memcachedvim /usr/share/nginx/html/nextcloud/config/添加如下参数:


本文标签: 站长 设置 添加 百度 平台