nextcloud/apache_secure_data
Eric Schirra de930bd71d Accepting request 796521 from home:ecsos:server
- Update to 18.0.4
  - No changelog from upstream at this time.
- Add nextcloud-rpmlintrc to reduce build warnings.
- Fix RewriteRules in apache_secure_data.

OBS-URL: https://build.opensuse.org/request/show/796521
OBS-URL: https://build.opensuse.org/package/show/server:php:applications/nextcloud?expand=0&rev=109
2020-04-23 11:55:33 +00:00

35 lines
1.1 KiB
Plaintext

Alias /nextcloud "@DATAPATH@/"
<Directory "@DATAPATH@">
Options +FollowSymLinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
<IfModule mod_headers.c>
Header always 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 /ocm-provider/ /nextcloud/ocm-provider/
Redirect 301 /ocs-provider/ /nextcloud/ocs-provider/
<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]
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>