Welcome to Centmin Mod Community
Register Now

Sysadmin webdav

Discussion in 'System Administration' started by SFLC, Dec 13, 2016.

Tags:
  1. SFLC

    SFLC Active Member

    224
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    2:26 AM
    1
    10
    Just wondering if anyone has webdav working.

    I've compiled nginx with the webdav module however can only get everything working except uploads
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:26 AM
    Nginx 1.13.x
    MariaDB 5.5
    What's wrong with uploads ?

    Unfortunately don't use webdav myself so my contribution is limited to basically providing Centmin Mod with optional webdav module support via optional variable NGINX_WEBDAV='y' which you can set in persistent config file /etc/centminmod/custom_config.inc and recompile nginx via centmin.sh menu option 4.

    Centmin Mod Nginx uses 2 nginx modules for webdav
     
  3. SFLC

    SFLC Active Member

    224
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    2:26 AM
    1
    10
    ya i did set it up with the custom config and it does work, just not uploads for some reasons.

    when i run
    curl -v -X PROPFIND http://domain.tld

    i get 405 not allowed.

    i just switched all my sites to https and now the above command gives a 302, so this could be a good sign, also webdav over http as far as i understand will transfer passwords in plain text so not wise.

    just to be clear, i know this isn't a centminmod issue and is purely a nginx one.

    i'll see what can be added to the nginx conf because i've tried everything so far.
     
    Last edited: Dec 13, 2016
  4. SFLC

    SFLC Active Member

    224
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    2:26 AM
    1
    10
    do you know how i can add this
    ./configure --with-http_dav_module --add-module=<path-to-this-module>

    from
    GitHub - arut/nginx-dav-ext-module: NGINX WebDAV missing methods support (PROPFIND & OPTIONS)

    ive already installed the dav module just not with the aforementioned extension and if reconfigure and compile nginx outside centmin itll break nginx and will fail to compile and i wont be able to update it again from centmin, and yes this actually happened to me a few days ago when i was experimenting with something else
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:26 AM
    Nginx 1.13.x
    MariaDB 5.5
  6. SFLC

    SFLC Active Member

    224
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    2:26 AM
    1
    10
    nice good to know, thats one less thing to deal with, ill keep experimenting, im certain this is a nginx conf issue, just to be certain, when i was experimenting i fully disabled csf and iptables
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:26 AM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, Disable CSF blocks everything as there's no iptable rules to allow ports for ftp etc - there's virtually no iptable rules set if you disable CSF firewall.