Maybe the P flag works:

RewriteRule ^(.*)$ http://YOURHOST/remote.php/webdav/$1 [P]

Regards,
Klaus


On 06/28/2016 01:33 PM, Ian Macdonald wrote:
> Hi,
> 
> Please let me know if this question is better posted to the Devel mailing
> list, but I thought I'd ask here first.
> 
> We have a client who would like to migrate from an older WebDAV system to
> ownCloud. We can migrate their files to their new ownCloud installation and
> set up user accounts. However, we thought that we'd make the migration
> easier by having the WebDAV URL remain the same so it doesn't have to be
> adjusted in people's existing WebDAV client programs.
> 
> So, I'd like the ownCloud interface to be available as normal at, say,
> owncloud.example.org. But then I'd like to have another hostname (the one
> they currently use for WebDAV), say dav.example.org, set up to work just for
> WebDAV. So, I'd like https://dav.example.org to point to ownCloud's WebDAV
> root for use with various WebDAV clients.
> 
> I created a second apache virtualhost with the dav.example.org hostname and
> then put in this rewrite rule:
> 
> RewriteRule ^(.*)$ /remote.php/webdav/$1 [PT]
> 
> However, when I connect to https://dav.example.org I get this error:
> LogicException Requested uri (/) is out of base uri (/remote.php/webdav/)
> 
> When I try webdavs://dav.example.org, the request just times out.
> 
> Has anyone else tried to set up a virtual host with the WebDAV share at the
> root level? What worked for you? I assume that a mod_rewrite rule should be
> able to do it, but maybe there are internal ownCloud server sanity checks
> that get confused by it.
> 
> Thanks in advance for any help anyone can give.
> 
> Best,
> -Ian Macdonald
>  GreenNet Ltd
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

Reply via email to