33 lines
No EOL
1,005 B
Text
33 lines
No EOL
1,005 B
Text
<VirtualHost *:80>
|
|
|
|
ServerName nextcloud.example.com
|
|
|
|
DocumentRoot /var/lib/nextcloud/webroot
|
|
Alias /dist-apps /usr/lib/nextcloud/nextcloud-apps
|
|
|
|
<Directory /var/lib/nextcloud/webroot>
|
|
Require all granted
|
|
AllowOverride All
|
|
Options FollowSymLinks MultiViews
|
|
</Directory>
|
|
|
|
<Directory /usr/lib/nextcloud>
|
|
Require all granted
|
|
AllowOverride All
|
|
Options FollowSymLinks MultiViews
|
|
</Directory>
|
|
|
|
<IfModule mod_dav.c>
|
|
Dav off
|
|
</IfModule>
|
|
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine on
|
|
RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]
|
|
RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]
|
|
RewriteRule ^\.well-known/webfinger /public.php?service=webfinger [QSA,L]
|
|
RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L]
|
|
RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L]
|
|
</IfModule>
|
|
|
|
</VirtualHost> |