Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

@sant123
Last activeFebruary 18, 2025 23:52
    • Star(0)You must be signed in to star a gist
    • Fork(0)You must be signed in to fork a gist
    Save sant123/78db5446eb5d474ea1690adbd5539725 to your computer and use it in GitHub Desktop.
    Create a webdav server with nginx
    # Put the contents of webdav under /etc/nginx/sites-available -> /etc/nginx/sites-available/webdav
    # In shell execute the following commands
    sudo rm /etc/nginx/sites-enabled/default
    sudo ln -s /etc/nginx/sites-available/webdav webdav
    sudo systemctl restart nginx
    # Use alias setting for sharing a directory under /webdav.
    server {
    listen 80 default_server;
    listen [::]:80 default_server;
    root /var/www/html;
    index index.html index.htm index.nginx-debian.html;
    server_name _;
    location /webdav {
    alias /media;
    client_body_temp_path /tmp;
    dav_methods PUT DELETE MKCOL COPY MOVE;
    dav_ext_methods PROPFIND OPTIONS;
    dav_access user:rw group:rw all:rw;
    create_full_put_path on;
    }
    }
    Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

    [8]ページ先頭

    ©2009-2025 Movatter.jp