Closed ge9 closed 1 year ago
please share your config yaml and version number.
I'm using wsgidav ver 4.3.0, installed withpip 23.3.1 and python 3.8.16. My wsgidav.yaml has only two lines:
fs_dav_provider:
follow_symlinks: true
As explained in changelog, symlinks work correctly with 4.2.0.
How do you run it, can you share the command line?
this is my command line.
wsgidav --config=$HOME/wsgidav.yaml --auth=anonymous --host=0.0.0.0 --port=11112 --root=$HOME/_dav_root -vv
I'm using ubuntu. _dav_root
contains symbolic links to root /
and ../test.txt
.
The --root
parameter is only a shortcut for a very simple provider_mapping
config option that currently does not use the fs_dav_provider
configuration.
As a workaround, you can specify the provider_mapping
in the config file instead of using the --root
parameter:
Command line
wsgidav --config=$HOME/wsgidav.yaml --auth=anonymous --host=0.0.0.0 --port=11112
with this config file
fs_dav_provider:
follow_symlinks: true
provider_mapping:
'/': '~/_dav_root'
Oh, that works! Thank you for quick and kind advice!
Thanks for this useful program. I used wsgidav and cheroot, with this wsgidav.yaml:
But when I accessed symlink files or directories, it says "403 Forbidden: Symlink support is disabled", behaving as if it was run without the config file. The output of -vv shows that the config is loaded correctly.
I appreciate any help!