2016-04-21 4 views
0

Ich benutze seit einiger Zeit owncloud auf meinem Ubuntu 14.04 LTS Headless Server.Upgrade von OwnCloud 8.2.3 auf OwnCloud 9.0.1 führt dazu, dass css und js als text/html geliefert werden

Vor ein paar Tagen habe ich versucht, auf OwnCloud 9.0.1 zu aktualisieren und beim ersten Einloggen nach dem Upgrade wurde ich mit nicht gestyltem Layout konfrontiert.

Wenn ich in der Browser-Konsole aussehen sehe ich viele Fehlermeldungen zu falschem Mime-Typ:

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. 

ich überprüft haben, um sicherzustellen, dass das MIME-Typen-Modul aktiviert ist.

Ich habe versucht, und füge hinzu:

AddType text/css .css 
AddType text/javascript .js 

Zur .htaccess-Datei, die in meinem ownCloud Stammverzeichnis ist aber das hat nicht geholfen.

Ich habe auch versucht, es zu der .htaccess Datei, die im Stammverzeichnis Web-Ordner ist und das hat auch keinen Effekt.

Gibt es etwas, das mir fehlt? Was sollte ich noch überprüfen?

Ich frage hier, weil owncloud Entwickler waren der Meinung, dass dies wahrscheinlich aufgrund von Serverkonfiguration Problem ist.

Antwort

2

Das ist mir passiert.

Ich habe gerade meine owncloud 8.2.x .htaccess zurück kopiert und das scheint es behoben zu haben.

Ich interessiere mich nicht genug, um die genaue Ursache zu finden, alles funktioniert, aber es scheint wie ownclouds Problem, dass sie entweder die Ursache finden müssen, wenn es ein Apache/nginx/ubuntu/was auch immer Setup-Problem ist, oder repariere es einfach, da das alte .htaccess funktioniert.

Owncloud beschwert sich jetzt, dass die Datei .htaccess Integritätsprüfungen fehlschlägt, aber das ist kein Problem für mich.

Wenn Sie eine tatsächliche Lösung gefunden haben, schreiben Sie sie bitte hier.

Verwandte Themen