Eric Schirra
c9d5bbb665
- Fix warning for /.well-known/{caldav,carddav} in overview security & setup warning. OBS-URL: https://build.opensuse.org/request/show/652246 OBS-URL: https://build.opensuse.org/package/show/server:php:applications/nextcloud?expand=0&rev=60
26 lines
653 B
Plaintext
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
|