I’m trying to setup webdav access on my Ghost droplet; I’ve read all the information I can find, and done the following:
server { listen 80; server_name site.com www.site.com;
client_max_body_size 10M;
location / {
proxy_pass http://localhost:2368/;
proxy_set_header Host $host;
proxy_buffering off;
}
}
server { listen 8080; server_name site.com;
client_max_body_size 20M;
location / {
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
dav_access group:rw all:r;
root /var/www/dav/;
auth_basic "Restricted";
auth_basic_user_file /var/www/dav/.htpasswd;
}
}
I’ve checked this setup from a console on the droplet, using cadaver; the authentication works, and a test upload worked.
But trying to connect from my mac (using Cyberduck, Firefox, mount_webdav) all fail. Can anyone help? What am I doing wrong?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
update: I tried cadaver from my Mac and it fails as well; so there is some problem with connecting dav from any other machine but the droplet… <br> <br>I must note that the Node+Ghost proxy is working; but this second server block seems not to. <br> <br>There are no nginx init errors. Going to take a look at the nginx log next.
there are no connect requests to the log. From this I’m guessing it’s an iptables/fail2ban error. <br> <br>going to start a separate thread for that.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.