Tuesday 02 May 2006 8:18:46 am
I have two websites running on two identically set up servers (Debian Sarge, Apache2, PHP 4.3.10-sarge16 running as Apache2 module, ezPublish 3.6.5). The only difference is that one runs MySQL 4.1 and the other MySQL 5.0.19. The latter is the problematic one with WebDAV, but everything else works fine. Not sure if it's MySQL related but I'll mention it anyway. DNS is setup properly and working. Both are of the type webdav.example.com, which is a CNAME of example.com I followed the webdav guide from Documentation to set it up. I added this to settings/override/webdav.ini.append.php
[GeneralSettings]
EnableWebDAV=true
I added a mod_rewrite rule to the Apache2 Virtual Host config for each site:
RewriteEngine On
RewriteRule !\.(css|jar|js|html|htm|php)$ /webdav.php [L]
Then Apache2 is restarted and all cache is cleared. I use cadaver, Nautilus and Internet Explorer to test webdav. The first site works. The second doesn't. 'home' is my default siteaccess and this is the error I got with cadaver:
linh@mypc~$ cadaver http://webdav.example.com
dav:/> ls
Listing collection `/': succeeded.
Coll: home 0 Apr 30 23:08
dav:/> cd home
Could not access /home/ (not WebDAV-enabled?):
404 Not Found
dav:/>
Enabling Logging only shows me that it was trying to access the above URI. The site that works would show me Content and Media when I cd into /home/ and everything works. I also tried adding the EnableWebDAV=true part to settings/siteaccess/home/webdav.ini.append.php for the second site, but that doesn't help either. I think WebDAV must be working to a certain extent as I can make the initial connection but don't know why it doesn't work any further than that. Any idea? Thanks a lot in advance.
If I had more time, I would write less code.
|