2016-07-21 15:39:03 +02:00
|
|
|
Alias /nextcloud "@DATAPATH@/"
|
|
|
|
<Directory "@DATAPATH@">
|
|
|
|
Options +FollowSymLinks
|
|
|
|
AllowOverride All
|
|
|
|
|
|
|
|
<IfModule mod_dav.c>
|
|
|
|
Dav off
|
|
|
|
</IfModule>
|
|
|
|
|
2016-07-25 13:45:04 +02:00
|
|
|
<IfModule mod_headers.c>
|
2018-09-10 23:24:42 +02:00
|
|
|
Header set Referrer-Policy no-referrer
|
2016-07-25 13:45:04 +02:00
|
|
|
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
|
|
|
</IfModule>
|
2018-09-10 23:24:42 +02:00
|
|
|
|
2016-07-21 15:39:03 +02:00
|
|
|
SetEnv HOME @DATAPATH@
|
|
|
|
SetEnv HTTP_HOME @DATAPATH@
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory "@DATAPATH@/data/">
|
|
|
|
# just in case if .htaccess gets disabled
|
|
|
|
Require all denied
|
|
|
|
</Directory>
|
2018-11-28 00:06:38 +01:00
|
|
|
|
|
|
|
Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
|
|
|
|
Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav
|