Reputation: 32893
Is it possible to create Webdav resource, that would act as a symbolic link on unixes? I.e. client would understand that this resource is a link, and that it should in fact work with some other resource?
Upvotes: 1
Views: 1734
Reputation: 446
If your symbolic link is a directory you can have a simple hack.
Instead of a symbolic link you make a normal folder that is empty (my_empty_folder
), then on the Apache configuration you point the empty folder to the real location (/opt/my_full_folder/
) using Alias
and Virtual Directory
Something like:
Alias /webdav/my_empty_folder /opt/my_full_folder/
<Directory /opt/my_full_folder >
Options +Indexes
<RequireAll>
Require all granted
</RequireAll>
</Directory>
mod_dav
will report the folder and when you click/follow it Apache will use the content from the destination folder.
This hack will allow for webdav clients to properly see the folder and follow the contents, but also browser using apache's index
Upvotes: 0
Reputation: 42017
A protocol for that is defined in RFC 4437; but there aren't a lot of clients and servers supporting that.
Upvotes: 3