• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Nextcloud and Problems with .htaccess

fguzkhjbgvkmuv

New Pleskian
Hello,

i started using Plesk on my ubuntu 20.04 Server just for Mail server, Nextcloud and a blog. I hoped it would make the things a bit easier but i have now quite some troubles to get a nextcloud working for my needs. First i tried set up a Nextcloud with php 8.0.15. After the installation there was a php memory_limit warning. In the php settings was the option just to set it up higher which i was first very happy about. After i changed the setting to 512M but the warning was still there. A bummer. I've tried to get it away with the help of the nextcloud documentation but it wouldnt work.
Then i tried 7.4.27 and it worked fine.
But there is still a thing that i cant figure out which i find existential. I get with a freshly new installation nextcloud with plesk in a subfolder or a subdomain(which is then in a subfolder of the subdomain, like why?) the warning:
Your web server is not properly set up to resolve “/.well-known/caldav”.
Your web server is not properly set up to resolve “/.well-known/carddav”.
Just following the documentation and editing the lines in .htaccess doesnt fix the problem. I've tried it with adding
RewriteRule ^\.well-known/carddav /nextcloud/remote.php/dav [R=301,L]
RewriteRule ^\.well-known/caldav /nextcloud/remote.php/dav [R=301,L]
or
RewriteRule ^\.well-known/carddav /var/www/vhosts/domain/nextcloud/remote.php/dav [R=301,L]
RewriteRule ^\.well-known/caldav /var/www/vhosts/domain/nextcloud/remote.php/dav [R=301,L]
/var/www/vhosts/domain/nextcloud
but it still did not work. I could not find the solution here. Is there a solution?
Also using Nextcloudoffice and the code server just breaks the whole nextcloud. And everything just with the vanilla plesk nextcloud extension! To be honest i am quite disappointed about the integration.
 
Have you tried this solution in .haccess?
Code:
<IfModule mod_headers.c>
  Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; strict-origin; preload"
  Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
  Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav
</IfModule>
 
Have you looked into the web server log files what exactly is logged when you access your domain /.well-known/carddav for example? If the above does not work, either the mod_headers is not present in Apache or maybe PHP is not running through Apache but Nginx only. You need to check this in the web server log files. At least the request for the carddav directory must be logged and you can see what the web server thinks about it.
 
Back
Top