<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 8, 2013 at 7:18 PM, Jules <span dir="ltr"><<a href="mailto:Jules@zend.to" target="_blank">Jules@zend.to</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im"><br>
On 08/01/2013 15:05, Achim J. Latz wrote:<br>
> Hello list:<br>
><br>
> On 08/01/2013 15:16, Achim J. Latz wrote:<br>
>> I had not realised that; creating a USERNAME folder below library indeed<br>
>> restricts the user to selecting files from that particular folder.<br>
>><br>
>> Now I just have to figure out the WebDAV side, as you pointed out.<br>
> After adding this to 000-zendto (just above the <Location /library> tag):<br>
><br>
> RewriteEngine On<br>
> BrowserMatch "^WebDAVLib/1.*" redirect-carefully<br>
> RewriteCond %{LA-U:REMOTE_USER} (.+)<br>
> RewriteRule ^/library(.*) /var/zendto/library/%1$1<br>
</div>Cool!<br>
<br>
Also note that in the UI if you have per-user directories and a user<br>
doesn't have a directory, they get the global top-level files if there<br>
are any, and they don't get shown the option of selecting a file at all<br>
if there aren't any files there. So you can just implement the library<br>
for those users who need it, without confusing all the rest of your<br>
users who won't understand it.<br>
<div class="im">><br>
> users can connect via WebDAV to zendto.domain.tld and see only their<br>
> specific sub-folder.<br>
><br>
> The only remaining challenge is to auto-generate the user-specific<br>
> folders, otherwise Apache returns a 404 during the first (WebDAV) log-in<br>
> attempt, beacuse the user's folder does not exist... any ideas?<br>
</div>Sorry, not a clue. Way beyond my Apache abilities (which are very<br>
limited, as you can probably tell :-)<br>
Can you script what happens as it processes a .htaccess? Some sort an<br>
option that causes a script to run?<br></blockquote><div><br></div><div>Hi, I hope it help you.<br><br><a href="http://forums.devshed.com/apache-development-15/do-something-different-if-one-directory-exists-turn-off-re-writing-626439.html">http://forums.devshed.com/apache-development-15/do-something-different-if-one-directory-exists-turn-off-re-writing-626439.html</a><br>
<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">><br>
> Jules, would it also be possible to make the search for library files to<br>
> show in the drop-down menu recursive? At the moment, only the top level<br>
> of any hierarchy is shown.<br>
</div>Possible, yes. Do you want them to be shown in the UI with the directory<br>
name and / separator?<br>
<div class="im">><br>
> It would be very handy to be able to create sub-folders and select files<br>
> contained in those sub-folders as well (e.g.<br>
> /var/zendto/library/user@domain.tld/project_1 and<br>
> /var/zendto/library/user@domain.tld/project_2, as opposed to<br>
> /var/zendto/library/user@domain.tld/ ONLY at the moment).<br>
</div>The snag is that it will need to show the subdirectories for user<br>
folders, but not for the global list. As the folders off that *are* the<br>
users. Bit messy...<br>
<div class="im"><br>
Jules<br>
<br>
--<br>
Julian Field MEng MBCS CITP CEng<br>
<br>
</div>Fisher: Variable 4 becoming cyclonic then northwest, 5 or 6. Slight or<br>
moderate. Rain, fog patches at first. Moderate or good, occasionally very poor<br>
at first.<br>
<div class="im"><br>
<a href="http://www.Zend.To" target="_blank">www.Zend.To</a><br>
Twitter: @JulesFM<br>
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654<br>
<br>
</div><div class=""><div class="h5">_______________________________________________<br>
ZendTo mailing list<br>
<a href="mailto:ZendTo@zend.to">ZendTo@zend.to</a><br>
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a><br>
</div></div></blockquote></div><br></div></div>