0

Owncloud HSTS

Hei, uus kapsittaja täällä. Sain asennettua tuon uusimman owncloudin secure-www/pilvi kansioon ja datat on siilossa pilvi-data kansiossa.

wget 'https://download.owncloud.org/community…' tar xjf owncloud-8.2.0.tar.bz2

Homma rokkaa muuten mut tuolla OC:n admin paneelissa on ilmoitus "HTTP-otsaketta "Strict-Transport-Security" ei ole määritetty vähintään "15768000" sekuntiin. Suosittelemme HSTS:n käyttöä paremman tietoturvan vuoksi, kuten tietoturvavinkeissä neuvotaan."

https://doc.owncloud.org/server/8.2/adm…manual/configurationserver/harden_server.html

Enable HTTP Strict Transport Security

While redirecting all traffic to HTTPS is good, it may not completely prevent man-in-the-middle attacks. Thus administrators are encouraged to set the HTTP Strict Transport Security header, which instructs browsers to not allow any connection to the ownCloud instance using HTTP, and it attempts to prevent site visitors from bypassing invalid certificate warnings.

This can be achieved by setting the following settings within the Apache VirtualHost file:

ServerName cloud.owncloud.com Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"

This example configuration will make all subdomains only accessible via HTTPS. If you have subdomains not accessible via HTTPS, remove includeSubdomains;.

This requires the mod_headers extension in Apache.

Eli siis kysymys kuuluukin, mihin / miten tuo muutos kuuluisi tehdä?

harris's avatar
28
harris
asked 2015-10-30 12:18:34 +0300, updated 2015-10-31 13:41:15 +0300
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

3

Sivuston juuren .htaccess-tiedostoon voi lisätä tuon rivin

Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"

Kokeilin juuri ja sillä tuo herja poistui.

tsk's avatar
1.3k
tsk
answered 2015-10-31 20:42:13 +0300
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

Jep, kiitos. tsk:n vastauksella herja lähti pois. Vastauksen "hyväksymis-nappia" ei näy.

harris's avatar
28
harris
answered 2015-11-01 13:29:27 +0300
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer