nextcloud/apache_secure_data
2018-11-27 23:06:38 +00:00

26 lines
653 B
Plaintext

Alias /nextcloud "@DATAPATH@/"
<Directory "@DATAPATH@">
Options +FollowSymLinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
<IfModule mod_headers.c>
Header set Referrer-Policy no-referrer
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
</IfModule>
SetEnv HOME @DATAPATH@
SetEnv HTTP_HOME @DATAPATH@
</Directory>
<Directory "@DATAPATH@/data/">
# just in case if .htaccess gets disabled
Require all denied
</Directory>
Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav