260614d
# DO NOT EDIT THIS FILE DIRECTLY. To override any element of the
260614d
# packaged ownCloud configuration, create a new /etc/httpd/conf.d/
260614d
# file which will be read later than 'nextcloud.conf'.
260614d
#
260614d
# As the initial setup wizard is active upon installation, access is
260614d
# initially allowed only from localhost. *AFTER* configuring the
260614d
# installation correctly and creating the admin account, to allow
260614d
# access from any host, do this:
260614d
#
260614d
# ln -s /etc/httpd/conf.d/nextcloud-access.conf.avail /etc/httpd/conf.d/z-nextcloud-access.conf
260614d
260614d
Alias /nextcloud/apps-appstore /var/lib/nextcloud/apps
260614d
Alias /nextcloud/assets /var/lib/nextcloud/assets
260614d
Alias /nextcloud /usr/share/nextcloud
260614d
260614d
# Allows compliant CalDAV / CardDAV clients to be configured using only
260614d
# the domain name. For more details see # http://tools.ietf.org/html/rfc6764
260614d
260614d
Redirect 301 /.well-known/carddav /nextcloud/remote.php/carddav
260614d
Redirect 301 /.well-known/caldav /nextcloud/remote.php/caldav
260614d
Redirect 301 /.well-known/webdav /nextcloud/remote.php/webdav
260614d
260614d
<Directory /usr/share/nextcloud/>
260614d
    Include conf.d/nextcloud-auth-local.inc
260614d
    Include conf.d/nextcloud-defaults.inc
260614d
    <FilesMatch ^(\.|autotest|occ|issue|indie|db_|console).*>
260614d
        Include conf.d/nextcloud-auth-none.inc
260614d
    </FilesMatch>
260614d
</Directory>
260614d
260614d
<Directory /var/lib/nextcloud/apps/>
260614d
    Include conf.d/nextcloud-auth-local.inc
260614d
    Include conf.d/nextcloud-defaults.inc
260614d
</Directory>
260614d
260614d
<Directory /var/lib/nextcloud/assets/>
260614d
    Include conf.d/nextcloud-auth-local.inc
260614d
    Include conf.d/nextcloud-defaults.inc
260614d
</Directory>
260614d
260614d
# For safety, explicitly deny any access to these locations.
260614d
# Upstream's .htaccess does something similar with mod_rewrite.
260614d
260614d
<Directory /var/lib/nextcloud/data/>
260614d
    Include conf.d/nextcloud-auth-none.inc
260614d
</Directory>
260614d
260614d
<DirectoryMatch /usr/share/nextcloud/(3rdparty|lib|config|templates)/>
260614d
    Include conf.d/nextcloud-auth-none.inc
260614d
</DirectoryMatch>