.htaccess 从OwnCloud 8.2.3升级到OwnCloud 9.0.1会导致css和js被用作text/html
我在Ubuntu 14.04 LTS headless服务器上使用owncloud已经有一段时间了 几天前,我尝试升级到OwnCloud 9.0.1,升级后第一次登录时,我看到了非样式布局 如果我在浏览器控制台中查看,我会看到许多关于错误mime类型的错误:.htaccess 从OwnCloud 8.2.3升级到OwnCloud 9.0.1会导致css和js被用作text/html,.htaccess,mime-types,owncloud,.htaccess,Mime Types,Owncloud,我在Ubuntu 14.04 LTS headless服务器上使用owncloud已经有一段时间了 几天前,我尝试升级到OwnCloud 9.0.1,升级后第一次登录时,我看到了非样式布局 如果我在浏览器控制台中查看,我会看到许多关于错误mime类型的错误: Refused to execute script from 'https://www.domain.at/cloud/core/vendor/jquery/jquery.min.js?v=a283428d5f34c45e26387d893
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/jquery/jquery.min.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/jquery-migrate/jquery-migrate.min.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/jquery-ui/ui/jquery-ui.custom.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/underscore/underscore.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/moment/min/moment-with-locales.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/handlebars/handlebars.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/blueimp-md5/js/md5.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/bootstrap/js/tooltip.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/backbone/backbone.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/es6-promise/dist/es6-promise.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/vendor/davclient.js/lib/client.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
www.domain.at/:1
Refused to execute script from 'https://www.domain.at/cloud/core/js/placeholders.js?v=a283428d5f34c45e26387d89361a95ba' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
我已检查以确保mime类型模块已启用
我尝试补充:
AddType text/css .css
AddType text/javascript .js
到.htaccess
文件,该文件位于我自己的云根目录中,但没有帮助
我还尝试将其添加到根web文件夹中的.htaccess
文件中,但也没有效果
我有什么遗漏吗?我还应该检查什么
我在这里提问是因为owncloud开发人员认为这可能是由于服务器配置问题造成的。这发生在我身上 我刚刚复制了我自己的Cloud 8.2.x
.htaccess
,似乎已经修复了它
我不想去寻找确切的原因,一切都在进行中,但看起来确实有问题,如果是apache/nginx/ubuntu/任何设置问题,他们需要找到原因,或者只是修复它,因为旧的.htaccess
可以工作
Owncloud现在抱怨.htaccess
文件未通过完整性检查,但这对我来说不是问题
如果你找到了一个实际的解决方案,请在这里发布。这件事发生在我身上 我刚刚复制了我自己的Cloud 8.2.x
.htaccess
,似乎已经修复了它
我不想去寻找确切的原因,一切都在进行中,但看起来确实有问题,如果是apache/nginx/ubuntu/任何设置问题,他们需要找到原因,或者只是修复它,因为旧的.htaccess
可以工作
Owncloud现在抱怨.htaccess
文件未通过完整性检查,但这对我来说不是问题
如果你已经找到了一个实际的解决方案,请在这里发布。最终解决问题的方法是逐字逐句地遵循。一旦我做到了,所有的工作都没有问题或错误 最终为我解决问题的是逐字逐句地遵循。一旦我做到了,所有的工作都没有问题或错误