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>
|
2019-10-01 18:34:23 +02:00
|
|
|
Header always 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
|
|
|
|
2019-03-01 09:20:02 +01:00
|
|
|
Redirect 301 /ocm-provider/ /nextcloud/ocm-provider/
|
|
|
|
Redirect 301 /ocs-provider/ /nextcloud/ocs-provider/
|
2020-04-23 13:55:33 +02:00
|
|
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteRule ^/\.well-known/host-meta /nextcloud/public.php?service=host-meta [QSA,L]
|
|
|
|
RewriteRule ^/\.well-known/host-meta\.json /nextcloud/public.php?service=host-meta-json [QSA,L]
|
2021-11-11 20:19:06 +01:00
|
|
|
RewriteRule ^/\.well-known/nodeinfo /nextcloud/public.php?service=nodeinfo [QSA,L]
|
2020-04-23 13:55:33 +02:00
|
|
|
RewriteRule ^/\.well-known/webfinger /nextcloud/public.php?service=webfinger [QSA,L]
|
|
|
|
RewriteRule ^/\.well-known/carddav /nextcloud/remote.php/dav/ [R=301,L]
|
|
|
|
RewriteRule ^/\.well-known/caldav /nextcloud/remote.php/dav/ [R=301,L]
|
|
|
|
</IfModule>
|