Hi Dominik !

To answer your questions : 

1- The vhost

As I run baikal at 192.168.1.16/baikal, I did not created a specific baikal 
vhost file. Here is the content of my 000-default.conf file (I removed the 
commented lines). This config seems working.

<VirtualHost 192.168.1.16:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        RewriteEngine On
        RewriteRule /.well-known/carddav /dav.php [R,L]
        RewriteRule /.well-known/caldav /dav.php [R,L]

        <Directory "/var/www/html">
                Options None
                Options +FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

2- When connecting to http://192.168.1.16/dav.php 
<http://www.google.com/url?q=http%3A%2F%2F192.168.1.16%2Fdav.php&sa=D&sntz=1&usg=AFQjCNG4j4_epeu9inm-yzbGK767Gs8MFg>
 in 
a browser, I get a "404 not found" response, on port 80

3- As I use Apache 2.4.10, I do not have a httpd.conf file in /etc/apache2. 
The only file I find is apache2.conf. I did not change anything in it...

I will concentrate on apache config ;)

Thanks 
Francois


Le jeudi 2 février 2017 11:53:16 UTC+1, Dominik a écrit :
>
> Hi Francois, 
>
> To me it looks like you might still have an issue with your Apache 
> configuration. 
> The .well-known redirect seems to be working now, but the “405 - Method 
> Not Allowed” errors in your Charles log are weird. 
>
> Maybe the vhost directory (see http://sabre.io/baikal/install/) isn’t 
> configured correctly. 
> Maybe you are explicitly allowing certain HTTP keywords/methods in your 
> httpd.conf and blocking all others? 
>
> Is Baikal (sabre/dav) responding at all, when you open 
> http://192.168.1.16/dav.php in a browser? If that’s not the case, your 
> configuration is wrong. 
>
> Looking at your Charles log it doesn’t seem like Baikal is answering here, 
> those all seem to be Apache responses. 
>
> Dominik 
>
> > On 2 Feb 2017, at 11:35, Francois Druel <[email protected] <javascript:>> 
> wrote: 
> > 
> > First, Thank you all for help. 
> > 
> > I reconfigured my Apache 2 server and it seems to work fine 
> > 
> > I tried to connect to baikal from Apple's Calendar, using the manual 
> setting. Always the same server http://192.168.1.16/dav.php/, always the 
> same user : jbond 
> > 
> > Using Charles, I find that the connection can be made but as a large 
> number of 404 and 405 http errors 
> > 
> > The Charles file is attached. 
> > 
> > Has anyone any idea ? 
> > 
> > Thanks in advance. 
> > Francois 
> > 
> > PS : I am sure Baikal is a fine product and a good choice ;)) 
> > 
> > 
> > Le mercredi 1 février 2017 20:55:36 UTC+1, Francois Druel a écrit : 
> > Thanks Dominik, 
> > 
> > I will try to configure this and have Apache 2 running with no problem 
> ;)) 
> > 
> > Francois 
> > 
> > Le mercredi 1 février 2017 15:16:26 UTC+1, Dominik a écrit : 
> > Hi Francois, 
> > 
> > That could be the issue - I think macOS Calendar.app needs a working 
> “.well-known” to correctly set up a new CalDAV account. 
> > It looks like your VHOST setup does not include the proper redirects. 
> > 
> > Check the “Apache vhost installation” info at: 
> > http://sabre.io/baikal/install/ 
> > 
> > That should help. 
> > 
> > Dominik 
> > 
> > > On 1 Feb 2017, at 13:43, Francois Druel <[email protected]> wrote: 
> > > 
> > > Hi Dominik and thanks for your Help. 
> > > 
> > > To answer your questions : 
> > > 
> > > 1- yes, I also tested via http (indeed, tested both http and https ;) 
> > > 
> > > 2- Yes I am sure the account has a calendar (see attached file 
> "cal.png) 
> > > 
> > > 3- The communication transcript between iCal & Baikal server gives me 
> two errors : A/ "TIC TCP Conn Failed [..]: 1.61 Err(61)" and B/ "HHTP load 
> failed (error code -1004) - NSURL Connection finished with error - code - 
> 1004 
> > > 
> > > 3bis - I used CharlesProxy and I was a connection to 
> http://192.168.1.16/.well-known/caldav that gives a response code "405 
> Method not allowed" 
> > > 
> > > Francois 
> > > 
> > > Le mercredi 1 février 2017 11:21:50 UTC+1, Dominik a écrit : 
> > > Hi Francois, 
> > > 
> > > I noticed in your screenshot that you tried 
> https://192.168.1.16/dav.php/ - that would only work if you had SSL 
> properly set up. 
> > > Did you also try http://192.168.1.16/dav.php/ instead? 
> > > 
> > > Are you absolutely certain, that the account has a calendar? 
> > > 
> > > Did you take a look at Console.app on the Mac during account 
> bootstrap? It might give you a hint what is going wrong. 
> > > You could also set up a web debugging proxy (like 
> https://www.charlesproxy.com) and take a look at how iCal and your server 
> are communicating. Might also give you a hint, why the account bootstrap 
> fails. 
> > > 
> > > Dominik 
> > > 
> > > > On 1 Feb 2017, at 10:38, Francois Druel <[email protected]> wrote: 
> > > > 
> > > > Hi Evert and thanks for help ! 
> > > > 
> > > > I just tested your solution, but it does not work... see attached 
> screenshot. 
> > > > 
> > > > Always the same error message... 
> > > > 
> > > > Francois 
> > > > 
> > > > Le mercredi 1 février 2017 03:27:48 UTC+1, Evert Pot a écrit : 
> > > > Hi Francois, 
> > > > 
> > > > For apple iCal, this url should just work: 
> > > > 
> > > > https://192.168.1.16/dav.php/ 
> > > > 
> > > > Let me know if you run into any problems with that! 
> > > > 
> > > > Evert 
> > > > 
> > > > 
> > > > On Monday, January 30, 2017 at 3:56:49 PM UTC-5, Francois Druel 
> wrote: 
> > > > Hello all, 
> > > > 
> > > > My name is Francois. I just installed Baikal on a Raspberry Pi 3. 
> > > > 
> > > > I use Baikal v. 0.46 (last stable),  Raspian Jessie, Apache v. 
> 2.4.10, php v. 7.0.14-2, and sqlite v. 3.8.7.1. The server is on my Lan 
> (192.168.1.16) 
> > > > 
> > > > I can connect to the server via a web browser (Safari) at 
> http://192.168.1.16/baikal/html/admin/ 
> > > > 
> > > > I created a user (jbond) and I configured a calendar and an address 
> book. 
> > > > 
> > > > The problem is that I cannot connect to the server using Apple's 
> iCal and Contacts. 
> > > > 
> > > > In iCal, I entered a "manual" ical account and following the 
> 'settings" of my server, I tested several configurations, none of them 
> working 
> > > > 
> > > > Here are several things I tested : 
> > > > 
> > > > - http://192.168.1.16.cal.php/jbond 
> > > > - http://192.168.1.16.cal.php/jbond 
> > > > - https://192.168.1.16.cal.php/jbond 
> > > > - https://192.168.1.16/cal.php/jbond 
> > > > 
> > > > Each time, the error was the same : "unable to verify name or 
> password" 
> > > > 
> > > > 
> > > > Did I miss something ? What informations are needed to connect ? 
> > > > 
> > > > Is there any tutorial anywhere ? 
> > > > 
> > > > Thanks for help 
> > > > Francois 
> > > > 
> > > > -- 
> > > > You received this message because you are subscribed to the Google 
> Groups "SabreDAV Discussion" group. 
> > > > To unsubscribe from this group and stop receiving emails from it, 
> send an email to [email protected]. 
> > > > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sabredav-discuss/dc08b759-ca5c-4529-b201-fbbf430c9426%40googlegroups.com.
>  
>
> > > > For more options, visit https://groups.google.com/d/optout. 
> > > > <Screen Shot 2017-02-01 at 10.17.27.png> 
> > > 
> > > 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> Groups "SabreDAV Discussion" group. 
> > > To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected]. 
> > > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sabredav-discuss/113b68f7-cefc-447a-b563-1fb3ac71d9cf%40googlegroups.com.
>  
>
> > > For more options, visit https://groups.google.com/d/optout. 
> > > <cal.png> 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "SabreDAV Discussion" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sabredav-discuss/9fafb997-a895-452b-bf4b-f2c9e7e57eac%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
> > <AppleCal-Jbond.chls> 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SabreDAV Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sabredav-discuss/93870406-74e6-4c08-8e13-db3539d9ff16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to