Updating from NC9 to 10: something went wrong with htacess

Hi there,

I seem to have had a smooth run with Hagen´s update instructions for NC 10 on hosted enviroment but now something seems wrong - i get a message that the htaccess would be wrong and the nextcloud could be reached from the internet?

Here is what I did:

move all NC9 files to different folder, left /data in place
uploaded all new nextcloud components to the folder where nextcloud resides
copied config/config.php from old NC installation to new NC10 installation
also copied .htacess in from old NC root directory to new NC root directory
also copied .htacess from old/config/ to new/config

Here is the errormessage i get:

Ihr Datenverzeichnis und Ihre Dateien sind wahrscheinlich vom Internet aus erreichbar. Die .htaccess-Datei funktioniert nicht. Es wird dringend empfohlen, Ihren Webserver dahingehend zu konfigurieren, dass das Datenverzeichnis nicht mehr vom Internet aus erreichbar ist oder dass Sie es aus dem Document-Root-Verzeichnis des Webservers herausverschieben.

What went wrong?


perhaps that helps:

I got that after the update too.

Hm, dunno, apacheconfig should be something only accessible to my webhoster not me but will ask

Got response from my webhoster, who is, i have to say extremely helpful.

The apache config thing does not apply with me.

However, using the new htacess which comes with NC10 BUT ADDING A SIMPLE “ALWAYS” in some lines did the trick.

So it looks in part like this now:

 <IfModule mod_env.c>
   # Add security and privacy related headers
   Header always set X-Content-Type-Options "nosniff"
   Header always set X-XSS-Protection "1; mode=block"
   Header always set X-Robots-Tag "none"
   Header always set X-Frame-Options "SAMEORIGIN"
   Header always set X-Download-Options "noopen"
   Header always set X-Permitted-Cross-Domain-Policies "none"
   SetEnv modHeadersAvailable true