Creating an instance of DAV

65 views
Skip to first unread message

Alex .A

unread,
Sep 15, 2015, 6:58:55 PM9/15/15
to SabreDAV Discussion
Hi Guys,

I am new to SaberDav. I installed SaberDav in my server and want to simply create a test function to see if the SaberDav is working fine. 

I read the docs in http://sabre.io/dav/gettingstarted/    , but I don't know how to see the result in browser ? 

Thanks,
Alex

Ingo Ratsdorf

unread,
Sep 18, 2015, 7:37:49 PM9/18/15
to sabredav...@googlegroups.com
Hi Alex,

are you sure that you read http://sabre.io/dav/gettingstarted/ ?
See down half way through the "Testing". Apparently you have to enter the URL that you have assigned to your server. If you do not know how to get there, then I suggest you read about your server (Apache?, don't know) and PHP.

Please refer to this:

We're talking about this line:

$server->setBaseUri('/url/to/server.php');

This path needs to point exactly to the server script. To find out what this should be, try to open server.php in your browser, and simply strip off the protocol and domainname.

So if this is how you access sabredav:

http://mydomain/sabredav/server.php

Then your base url would be:

/sabredav/server.php

So you would have to enter exactly that for testing:
http://mydomain/sabredav/server.php
But of course we do not know how you have set up and what your URL is and whether you use rewriting...

Cheers,
Ingo
--

Alex .A

unread,
Sep 22, 2015, 8:56:41 PM9/22/15
to SabreDAV Discussion
Hi IngoRatsdorf,

Thanks for your reply. My saber/dav is working fine right now. I can see the page that has the form to upload file and create directories. But, when I upload a file and then click on the uploaded file name, I get 404 error. That's because the url path of the file doesn't have the "public" folder name on it, if manually add the "/public" to the address bar before the file name, I can see the file on the browser (I am I can open it if it's picture, the picture can be seen, which is fine).

How we can setup up our route to automatcally adds the "/public" to the route of the uploaded file? For example, plz see the attached file, when I click on the "pic_2.jpg" , I see 404 error on the page.

Another issue I have is using the Finder on my Mac. I can connect to remote server using Finder and web dav, but when I drag a file to that folder , it asked me for username/password, but never accepts my username/password.

Should I setup my credentials somewhere in Saberdav? 

Thank you, I really appreciate your help.
Alex
Screen Shot 2015-09-22 at 5.52.47 PM.png

Evert Pot

unread,
Sep 24, 2015, 5:10:30 AM9/24/15
to SabreDAV Discussion
This person also sent this question on github, so if anyone is interested, go there for the canonical thread:

https://github.com/fruux/sabre-dav/issues/722
Reply all
Reply to author
Forward
0 new messages