WebDAV 代理

发布于 2024-12-21 13:37:08 字数 353 浏览 2 评论 0原文

我想为我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

趴在窗边数星星i 2024-12-28 13:37:08

除非我遗漏了某些内容,否则反向代理将必须重写标头字段(例如 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.

月牙弯弯 2024-12-28 13:37:08

您可以使用 SabreDAV 来完成此操作。它有一个TemporaryFileFilter 插件,完全可以满足您的需求。它不仅拦截这些资源分叉,还将它们置于临时“隔离区”。这很重要,因为 OS/X 将检查文件是否已成功写入,否则会严重失败。

不过,为了完成这项工作,您仍然需要做两件事:

  1. 自动清理这些文件(还提供了适合 cron 的脚本)。
  2. 实际的代理位。这意味着您必须实现一个 Collection 和一个 File 执行 HTTP 请求的类。

免责声明:我创作了 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:

  1. Automatic cleanup of these files (a script suitable for cron is also supplied).
  2. The actual proxy bit. This means you'll have to implement a Collection and a File class that perform the HTTP requests.

Disclaimer: I authored SabreDAV

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文