Add some commented lines (as documentation).
This commit is contained in:
parent
bfc9d46d06
commit
4be8a24fac
@ -23,6 +23,17 @@
|
||||
|
||||
ServerName <FULL-QUALIFIED-SITE-NAME>
|
||||
|
||||
# Service Discovery
|
||||
#
|
||||
# !! We alraedy provide this servis via '.htaccess'-file !!
|
||||
#
|
||||
# The redirects for CalDAV or CardDAV does not work if Nextcloud is running behind a
|
||||
# reverse proxy. The recommended solution is that your reverse proxy does the redirects
|
||||
#
|
||||
#RewriteEngine On
|
||||
#RewriteRule ^/\.well-known/carddav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
|
||||
#RewriteRule ^/\.well-known/caldav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
|
||||
|
||||
#ProxyErrorOverride On
|
||||
|
||||
<FilesMatch \.php$>
|
||||
|
BIN
FILES/images/favicon.ico
Normal file
BIN
FILES/images/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
@ -4594,6 +4594,17 @@ if $apache2_installed ; then
|
||||
|
||||
ServerName ${WEBSITE}
|
||||
|
||||
# Service Discovery
|
||||
#
|
||||
# !! We alraedy provide this servis via '.htaccess'-file !!
|
||||
#
|
||||
# The redirects for CalDAV or CardDAV does not work if Nextcloud is running behind a
|
||||
# reverse proxy. The recommended solution is that your reverse proxy does the redirects
|
||||
#
|
||||
#RewriteEngine On
|
||||
#RewriteRule ^/\.well-known/carddav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
|
||||
#RewriteRule ^/\.well-known/caldav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
|
||||
|
||||
#ProxyErrorOverride On
|
||||
|
||||
<FilesMatch \.php\$>
|
||||
@ -5152,6 +5163,25 @@ server {
|
||||
access_log off; # Optional: Don't log access to assets
|
||||
}
|
||||
|
||||
# Service Discovery
|
||||
#
|
||||
# !! we already configured this service inside 'location ~ \.php(?:\$|/) {' !!
|
||||
#
|
||||
# The redirects for CalDAV or CardDAV does not work if Nextcloud is running behind a
|
||||
# reverse proxy. The recommended solution is that your reverse proxy does the redirects
|
||||
#
|
||||
#rewrite ^/\.well-known/carddav https://\$server_name/remote.php/dav/ redirect;
|
||||
#rewrite ^/\.well-known/caldav https://\$server_name/remote.php/dav/ redirect;
|
||||
#
|
||||
# or alternativ
|
||||
#
|
||||
#location /.well-known/carddav {
|
||||
# return 301 \$scheme://\$host/remote.php/dav;
|
||||
#}
|
||||
#location /.well-known/caldav {
|
||||
# return 301 \$scheme://\$host/remote.php/dav;
|
||||
#}
|
||||
|
||||
location / {
|
||||
try_files \$uri \$uri/ /index.php\$request_uri;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user