Gallery:模块:webdav:用户(user)

来自站长百科
Sunzz1985讨论 | 贡献2008年6月11日 (三) 10:19的版本 (新页面: === Manually connect with WebDAV URL === The following are examples of WebDAV clients which work with Gallery, with a few corner cases, depending on the client and your server: ==== Wind...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Manually connect with WebDAV URL

The following are examples of WebDAV clients which work with Gallery, with a few corner cases, depending on the client and your server:

Windows Web Folders

  • In My Network Places, click Add a network place

img:91807img:91812

  • When the wizard asks Where do you want to create this network place?, click Choose another network location

img:91814img:91816

  • When the wizard asks What is the address of this network place?, enter the WebDAV URL of the album in Gallery. The WebDAV URL for each album in Gallery is displayed in the WebDAV URL block. The Gallery administrator must activate the WebDAV URL block for it to appear. The WebDAV URL is by default: http://example.com/gallery2/w/album/path.

img:91818

  • When the wizard asks, What do you want to name this place?, enter anything you like.

img:91820img:91822img:91824

Mac OS X WebDAVFS

  • In the Finder, from the Go menu, select Connect to Server...

img:92220

  • Enter the WebDAV URL of the album in Gallery. The WebDAV URL for each album in Gallery is displayed in the WebDAV URL block. The Gallery administrator must activate the WebDAV URL block for it to appear. The WebDAV URL is by default: http://example.com/gallery2/w/album/path.

img:92224img:92226img:92231img:92228

Mac OS X fails to connect without a correct OPTIONS response. mod_php will pass OPTIONS requests to Gallery, so the response includes DAV headers, however Apache won't pass OPTIONS requests to scripts, so if you use php-cgi, you must use mod_rewrite and mod_headers to set these headers instead.

GNOME

  • In the panel, from the Places menu, select Connect to Server...

img:92395

  • In the Service type: menu, choose WebDAV (HTTP)
  • In the Server: field, enter the WebDAV URL of the album in Gallery without leading http://. The WebDAV URL is by default: example.com/gallery2/w/album/path

img:92398

fusedav

Needs documentation and screen shots.

Automatically connect with item link

Internet Explorer

WebDAV, ActiveX, ASP.NET and related links:

About Web Folder Behaviors http://msdn2.microsoft.com/en-us/library/ms531432.aspx

ActiveX : The Official Microsoft ASP.NET Site http://silverlight.net/Default.aspx

Introducing Silverlight http://www.asp.net/silverlight/

Download Silverlight http://www.microsoft.com/silverlight/install.aspx

Info on Working with Distributed Authoring and Versioning (DAV) and Web Folders http://support.microsoft.com/kb/q221600/

Konqueror

The item link will connect to WebDAV with the webdav:// URL scheme.

Other

In other browsers, the item link will download a davmount resource: RFC 4709

For now, to open davmount resources on Windows, you must run the script at the end of RFC 4709. This only applies if you're not using Internet Explorer, e.g. Firefox. Media:Davmount.zip

Known Issues

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Troubleshooting

I'm trying to test the Gallery WebDAV connection on as many clients and servers as possible. If you encounter problems connecting to Gallery with WebDAV, please include in a bug report a transcript of the WebDAV HTTP conversation. You can use tcpflow or Wireshark to get a transcript: http://www.circlemud.org/~jelson/software/tcpflow/ http://packages.debian.org/tcpflow http://www.wireshark.org/ http://packages.debian.org/wireshark

tcpflow

tcpflow is a command line tool. You can run it on either your client or your server. It may require root permission to open your network interface. The following will display a transcript of the HTTP conversation with example.com:

sudo tcp -C port http and host example.com

Documentation

The Plone project has excellent WebDAV documentation: http://plone.org/documentation/how-to/webdav