WebDAV 代理
我想为我的 webdav 服务器设置一个反向代理。这样做的主要原因是为了让我可以更好地控制哪些文件上传到 webdav 服务器。我无法在 webdav 服务器本身上执行此操作,它是 alfresco 的一项服务,我现在知道是否可以配置 webdav 服务。
特别是,我想阻止我的 Mac 在 webdav 服务器上执行 AppleDouble 操作,即阻止我的 Mac 为我上传的每个真实文件上传 ._* 文件。据我所知,没有办法阻止我的 Mac 尝试这样做。
代理服务器是否需要了解更多信息,而不仅仅是来回转发 http 请求,它是否还需要了解有关 webdav 的信息才能使其正常工作?
您可以为此推荐哪些代理服务器?
冈瑟
I'd like to set up a reverse proxy for my webdav server. The main reason for this is so that I can better control which files are being uploaded to the webdav server. I cannot do this at the webdav server itself, it's a service by alfresco and I have now idea whether or not it's possible to configure the webdav service at all.
In particular I'd like to prevent my mac to do the AppleDouble thingy on the webdav server, i.e. stop my mac from uploading ._* files for every real file I upload. There is as far as I know no way to stop my mac from attempting this.
Does the proxy server need to know more than merely relaying http requests back and forth, does it also need to know something about webdav in order for this to work?
Which proxy servers could your recommend for this?
Günther
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除非我遗漏了某些内容,否则反向代理将必须重写标头字段(例如 Destination: 和 If:)才能正常工作,甚至可能需要重写请求/响应主体,因此不太可能正常工作。
不过,“适当的”代理不应成为障碍。
Unless I'm missing something, a reverse proxy will have to rewrite header fields (such as Destination: and If:) to work properly and potentially even request/response bodies, and thus is unlikely to work well.
A "proper" proxy shouldn't get in the way, though.
您可以使用 SabreDAV 来完成此操作。它有一个TemporaryFileFilter 插件,完全可以满足您的需求。它不仅拦截这些资源分叉,还将它们置于临时“隔离区”。这很重要,因为 OS/X 将检查文件是否已成功写入,否则会严重失败。
不过,为了完成这项工作,您仍然需要做两件事:
免责声明:我创作了 SabreDAV
You could do this with SabreDAV. It has a TemporaryFileFilter Plugin that does exactly what you need. Not only does it intercept these resource forks, it also places them in a temporary 'quarantine'. This is important, because OS/X will check if the file was successfully written and fail horribly otherwise.
There will be two things you still need to do to make this work though:
Disclaimer: I authored SabreDAV