Plon 4.0.4 和 WebDAV
我一直在查看
http://plone.org/documentation/kb/webdav http://plone.org/documentation/kb/more-webdav
我能够使用 cadaver 连接到端口 1980(在 FreeBSD 上)。
我使用 Apache(ProxyPass 和 ProxyPassReverse)对 Plone 进行了简单的设置。
到目前为止,一切都很好。现在我希望 Apache 将 WebDAV 请求代理(或重写)到 WebDAV 服务器。当使用 Netdrive(或在文件资源管理器中映射驱动器的其他实用程序)时,用户只能通过 WebDAV 查看其个人“成员文件夹”,而不是根文件夹或其他成员文件夹。
如果有人可以指导我一个简单的教程,显示 Apache VirtualHost 中的重写规则(不是我理解的 ProxyPass),我会很高兴。
谢谢。 尼古拉·G.
Ive been looking at
http://plone.org/documentation/kb/webdav
http://plone.org/documentation/kb/more-webdav
and Im able to connect to port 1980 with cadaver (on FreeBSD).
I have a simple setup of Plone behind Apache using (ProxyPass and ProxyPassReverse).
So far so good. Now I would like Apache to proxy (or rewrite) WebDAV requests to the
WebDAV server. Users must only see their personal "member folder" with WebDAV - not root or other member folders, when using Netdrive (or other util to map a drive in the file explorer).
I would be happy if someone could direct me to a simple tutorial showing the rewrite rules (not ProxyPass as I understand) in Apache VirtualHost.
Thanks.
Nikolaj G.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ProxyPass 可以工作。我有一些网站使用 ProxyPass,其他网站使用 RewriteRule。 Zope VirtualHostMonster 下的文档是另一个好地方。
重写就像这样简单:
因此,我假设您将为 DAV 服务器指定一个特定的主机名 - 在本例中为 webdav.example.ca。
在打开 Rewrite 之前,您无法使用它:-)
VirtuaLHostBase 之前的部分是 DAV 服务器所在的实际主机/端口。下一部分http/webdav.example.ca:80 描述您希望用户使用的协议//:server:port。 Plone 将是您的 Plone 站点名称。 $1 与正则表达式 (.*) 匹配。
测试它就像使用 DAV 服务器上的尸体一样简单。首先确保您可以访问:
然后:
最后:
现在,这并不能阻止用户尝试附加到其他人的文件夹,但 Zope 安全性可以。这有点像先有鸡还是先有蛋的情况,服务器在您使用用户名之前并不知道用户名。
ProxyPass can work. I have some sites using ProxyPass, others using RewriteRule. The documentation under your Zope VirtualHostMonster is another good place.
The rewriting is as simple as this:
So, I'm assuming you are going to have a specific hostname for the DAV server - in this case webdav.example.ca.
You can't use Rewrite until you turn it on :-)
The part before VirtuaLHostBase is the actual host/port your DAV server is on. The next part http/webdav.example.ca:80 describes the protocol//:server:port you want the users to use. Plone would be your Plone Site name. $1 matches the regular expression (.*).
Testing it is as easy as using cadaver from your DAV server. First make sure that you can access:
Then:
Finally:
Now, this doesn't prevent a user from trying to attach to somebody else's folder, but Zope security does. There's a bit of a chicken and egg situation in that the server doesn't know the username until after you have already used this.