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/添加如下参数:
版权声明:本文标题:史上最全Nextcloud部署方式,含snap与手动部署两种(已亲测使用)_ 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1702880368a434415.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论