2017-02-21 15:30:00 +01:00
|
|
|
# DO NOT EDIT THIS FILE DIRECTLY. To override any element of the
|
|
|
|
# packaged ownCloud configuration, create a new /etc/httpd/conf.d/
|
|
|
|
# file which will be read later than 'nextcloud.conf'.
|
|
|
|
#
|
|
|
|
# As the initial setup wizard is active upon installation, access is
|
|
|
|
# initially allowed only from localhost. *AFTER* configuring the
|
|
|
|
# installation correctly and creating the admin account, to allow
|
|
|
|
# access from any host, do this:
|
|
|
|
#
|
|
|
|
# ln -s /etc/httpd/conf.d/nextcloud-access.conf.avail /etc/httpd/conf.d/z-nextcloud-access.conf
|
|
|
|
|
|
|
|
Alias /nextcloud/apps-appstore /var/lib/nextcloud/apps
|
|
|
|
Alias /nextcloud/assets /var/lib/nextcloud/assets
|
|
|
|
Alias /nextcloud /usr/share/nextcloud
|
|
|
|
|
2024-06-22 19:29:35 +02:00
|
|
|
# This must be set explicitly in some environments, such as el9
|
|
|
|
AddType text/javascript .mjs
|
|
|
|
|
2017-02-21 15:30:00 +01:00
|
|
|
# Allows compliant CalDAV / CardDAV clients to be configured using only
|
|
|
|
# the domain name. For more details see # http://tools.ietf.org/html/rfc6764
|
|
|
|
|
2022-09-23 11:06:09 +02:00
|
|
|
Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
|
|
|
|
Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav
|
|
|
|
Redirect 301 /.well-known/webdav /nextcloud/remote.php/dav
|
|
|
|
Redirect 301 /.well-known/webfinger /nextcloud/index.php/.well-known/webfinger
|
|
|
|
Redirect 301 /.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo
|
2017-02-21 15:30:00 +01:00
|
|
|
|
|
|
|
<Directory /usr/share/nextcloud/>
|
|
|
|
Include conf.d/nextcloud-auth-local.inc
|
|
|
|
Include conf.d/nextcloud-defaults.inc
|
|
|
|
<FilesMatch ^(\.|autotest|occ|issue|indie|db_|console).*>
|
|
|
|
Include conf.d/nextcloud-auth-none.inc
|
|
|
|
</FilesMatch>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /var/lib/nextcloud/apps/>
|
|
|
|
Include conf.d/nextcloud-auth-local.inc
|
|
|
|
Include conf.d/nextcloud-defaults.inc
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /var/lib/nextcloud/assets/>
|
|
|
|
Include conf.d/nextcloud-auth-local.inc
|
|
|
|
Include conf.d/nextcloud-defaults.inc
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# For safety, explicitly deny any access to these locations.
|
|
|
|
# Upstream's .htaccess does something similar with mod_rewrite.
|
|
|
|
|
|
|
|
<Directory /var/lib/nextcloud/data/>
|
|
|
|
Include conf.d/nextcloud-auth-none.inc
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<DirectoryMatch /usr/share/nextcloud/(3rdparty|lib|config|templates)/>
|
|
|
|
Include conf.d/nextcloud-auth-none.inc
|
|
|
|
</DirectoryMatch>
|