WebFaction
Community site: login faq

For caldav/cardav, it seems I'm supposed to be adding this to the ngix config:

location = /.well-known/carddav {
  return 301 $scheme://$host:$server_port/remote.php/dav;
}
location = /.well-known/caldav {
  return 301 $scheme://$host:$server_port/remote.php/dav;
}

Since I don't have access to the config, is there some work-around?

asked 07 Jul, 09:47

DiagonalArg
157
accept rate: 0%

edited 07 Jul, 09:48


If you are using an Static/PHP/CGI type of application then our server-wide installation of Apache is the one serving your nextcloud application, not the frontend nginx webserver, which only acts as a proxy.

The redirects mentioned should be handled by your site's .htaccess by default.

permanent link

answered 07 Jul, 10:08

iliasr ♦♦
2.1k14
accept rate: 35%

It is Static/PHP/CGI, and I had at first tried .htaccess. So what is then wrong with these redirects?

  RewriteRule ^\.well-known/host-meta /DOMAIN_nextcloud/public.php?service=host-meta [QSA,L]
  RewriteRule ^\.well-known/host-meta\.json /DOMAIN_nextcloud/public.php?service=host-meta-json [QSA,L]
  RewriteRule ^\.well-known/webfinger /DOMAIN_nextcloud/public.php?service=webfinger [QSA,L]
  RewriteRule ^\.well-known/carddav /DOMAIN_nextcloud/remote.php/dav/ [R=301,L]
  RewriteRule ^\.well-known/caldav /DOMAIN_nextcloud/remote.php/dav/ [R=301,L]

(Here DOMAIN is my domain without the .net, as I used DOMAIN_nextcloud as the app name. I also tried without /DOMAIN_nextcloud, as that was the initial state of the file.)

(07 Jul, 10:55) DiagonalArg

You do not need to add the /DOMAIN_nextcloud/ part, as the public.php and remote.php and .htaccess files should all be relative to the root directory of your files.

The default .htaccess should work without any changes. If you are experiencing any issues, please raise a ticket as we will need to know the exact WebFaction username and URL of your site to troubleshoot this.

(07 Jul, 11:09) iliasr ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×2
×1

question asked: 07 Jul, 09:47

question was seen: 157 times

last updated: 07 Jul, 11:09

Related questions

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM