[Zope-dev] zope + apache + webdav

Brian Lloyd Brian@digicool.com
Mon, 15 May 2000 09:51:32 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------ =_NextPart_000_01BFBE74.AD718CD0
Content-Type: text/plain

> I've got a zope who turn on my apache server, and i want use webdav.
> Is anybody know how to change the httpd.conf to use webdav 
> protocol  to
> work with zope through apache ?

Hi Steve,

If you want to run through apache, you need to apply a patch 
to mod_cgi.c to get apache to defer to Zope's WebDAV handling. 
The reason is that clients send an OPTIONS request to the 
server to ask if the server supports WebDAV. If you ask ZServer
directly, it will answer yes, but if you ask through Apache, the
request gets intercepted by some code in Apache's mod_cgi module,
which prevents Zope (or any other back-end system that goes through
the cgi machinery) from responding to the request.

I've reported this to the Apache group, but they seem to think
that this is not a bug and don't plan to change it. :( I've 
attached a patch that you can apply to mod_cgi.c that should 
allow OPTIONS requests to pass through to Zope.


Brian Lloyd        brian@digicool.com
Software Engineer  540.371.6909              
Digital Creations  http://www.digicool.com 



------ =_NextPart_000_01BFBE74.AD718CD0
Content-Type: application/octet-stream;
	name="mod_cgi_webdav_patch.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="mod_cgi_webdav_patch.tgz"

H4sIAO9YZjcAA+2VTW/jNhCGc41+xXQvG3ttR7YTO07WRYPE3Q2QL3TdFugloKWRRIQiVZKy17vt
f++QlpMmwLanpD3wQRBb1JDzzgfHP81Oz69mPfvZ7rwY/TgeHRzADgCMxwP/2W+eHf3RcAAwGg/7
B4cHg8M+rfQHo+EOxC8n6ZHaWKYBdhaaM/mPdqjNawh6XU4rlhQIpUrvkpzDr7g4P/0FKmaTIup+
myiaF9xs7CDjn9EAg0qrhcASVtwWDycqCY2PFS6AkrikPEa2YBYwyzCxfCnWtBWXKK3ZCkgE94+Z
ViVoTFQu+Rcuc7AFRo2NqatKaevcLnmKKSzW8JuqsPf8EIMyBSaBS245E9HH+fwWbm7nFzfXn+jw
32s0FqyCFC3qkkuSWiA50hST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