PDA

View Full Version : ispconfig2 and webdav


poisen
25th February 2010, 22:35
Hey everybody,

I got a problem. I've been reading a lot about using webdav with ispconfig2, now I just setup a new web called "data.xyz.com" and tried making a connection to it. FTP is NOT enabled, I want to use the webdav to mount a network share and use it as some swap space for some of my files. Sadly, whatever I do, I just cannot get a connection to it. What am I doing wrong or is there anything else I have to watch out for? My user is Admin and webdav is for the user enabled.

I'd be happy to get some help.

jnsc
26th February 2010, 09:18
1. Enable webdav for this site
2. Create a user and allow him to do webdav (by checking the webdav box)
3. connect by www.example.com/webdav

That should do it.

poisen
26th February 2010, 10:52
This is what I've been trying already like 1000 times and it doesn't work, when I enter www.example.com/webdav in the browser, I get a 404 error. When I try setting up a network drive in windows it keeps prompting me to enter a password.

poisen
26th February 2010, 11:06
I just tried using Webdrive to setup a connection, this is the error I got:

Connecting to site example.com
Connecting to example.com/webdav
Resolving url example.com to an IP address
Url resolved to IP address 12.12.12.12
Connecting to 12.12.12.12 on port 80
Connected successfully to the server on port 80
Testing directory listing ...

Unable to connect to server, error information below

Error: HTTP Error response received from server, erorr=405 (4516)
Operation: Connecting to server
Server Response: 405 Method Not Allowed

jnsc
26th February 2010, 11:10
What is in your apache error logs?

poisen
26th February 2010, 11:20
[Fri Feb 26 11:19:32 2010] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Fri Feb 26 11:19:40 2010] [error] an unknown filter was not added: PHP

Those are errors that are from some other misconfiguration which I've just resolved ... otherwise there are no errors in the apache error_log when I am trying to connect using webdav and the connection fails.

poisen
1st March 2010, 09:15
I've been trying many many times now to set up WebDAV Support in ISPConfig 2.2.35 but it just doesn't work.

This is part of the Apache access_log when I'm trying to connect through MacOSX

95.90.xxx.xxx - - [01/Mar/2010:17:43:32 +0100] "OPTIONS /webdav HTTP/1.1" 200 - "-" "WebDAVLib/1.1"
95.90.xxx.xxx - - [01/Mar/2010:17:43:44 +0100] "OPTIONS /webdav HTTP/1.1" 200 - "-" "WebDAVLib/1.1"
95.90.xxx.xxx - - [01/Mar/2010:17:43:44 +0100] "OPTIONS /webdav/ HTTP/1.1" 200 - "-" "WebDAVFS/1.8 (01808000) Darwin/10.2.0 (i386)"


This is what comes up in the apache access_log when trying to connect with TeamDrive

95.90.xxx.xxx - - [01/Mar/2010:18:02:15 +0100] "PROPFIND /webdav/WebDAVKompatibilitaetstest/ HTTP/1.1" 405 1210 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
95.90.xxx.xxx - - [01/Mar/2010:18:02:22 +0100] "DELETE /webdav/WebDAVKompatibilitaetstest/ HTTP/1.1" 405 1210 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
95.90.xxx.xxx - - [01/Mar/2010:18:02:23 +0100] "DELETE /webdav/WebDAVTestDatei HTTP/1.1" 405 1210 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
95.90.xxx.xxx - - [01/Mar/2010:18:02:24 +0100] "DELETE /webdav/WebDAVTestDatei_Ziel HTTP/1.1" 405 1210 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
95.90.xxx.xxx - - [01/Mar/2010:18:02:26 +0100] "DELETE /webdav/WebDAVTestDatei_Verschoben HTTP/1.1" 405 1210 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
95.90.xxx.xxx - - [01/Mar/2010:18:02:27 +0100] "PROPFIND /webdav/einkomplizierterlangername/ HTTP/1.1" 405 1210 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
95.90.xxx.xxx - - [01/Mar/2010:18:02:28 +0100] "MKCOL /webdav/WebDAVKompatibilitaetstest/ HTTP/1.1" 405 1210 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
95.90.xxx.xxx - - [01/Mar/2010:18:02:29 +0100] "PROPFIND /webdav/WebDAVKompatibilitaetstest/ HTTP/1.1" 405 1210 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"


WebDav is activated for the reseller, this is the part out of the Vhosts_ispconfig.conf

<VirtualHost 85.214.xxx.xxx:80>
ServerName data.example.de:80
ServerAdmin webmaster@example.de
DocumentRoot /srv/www/web102/web
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /srv/www/web102/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /stats "/srv/www/web102/web/webalizer"
Alias /error/ "/srv/www/web102/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web102/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web102/user/$1/web/$3
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
<IfModule mod_dav.c>
Alias /webdav /srv/www/web102/web
<Location /webdav>
DAV On
AuthType Basic
AuthName "webdav"
AuthUserFile /srv/www/web102/passwd.dav
Require valid-user
</Location>
</IfModule>
</VirtualHost>


Can anybody else help me on this problem? It would be very very important for me to have this feature working.

Thanks a lot,

Eddie

falko
2nd March 2010, 16:34
Try www.example.com:80/webdav when you connect from Windows (see http://www.howtoforge.com/how-to-set-up-webdav-with-apache2-on-ubuntu-9.10-p2 ).

poisen
2nd March 2010, 16:44
Hi falko,

with entering the port in windows I get the error message that the entered folder is invalid and I should select a different folder.

:-(

The URL is entered correct, double checked that.


Try www.example.com:80/webdav when you connect from Windows (see http://www.howtoforge.com/how-to-set-up-webdav-with-apache2-on-ubuntu-9.10-p2 ).

falko
3rd March 2010, 14:27
Are there any errors in the error log of that web site (in the /srv/www/web102/log folder)?

poisen
4th March 2010, 14:50
Hi falko,

these are the erros out of /srv/www/web102/log/error.log


[Tue Mar 02 16:41:12 2010] [error] [client 95.90.131.250] File does not exist: /srv/www/web102/web/_vti_inf.html
[Tue Mar 02 16:41:13 2010] [error] [client 95.90.131.250] File does not exist: /srv/www/web102/web/_vti_bin
[Tue Mar 02 16:41:30 2010] [error] [client 95.90.131.250] File does not exist: /srv/www/web102/web/_vti_inf.html
[Tue Mar 02 16:41:30 2010] [error] [client 95.90.131.250] File does not exist: /srv/www/web102/web/_vti_bin
[Tue Mar 02 16:41:37 2010] [error] [client 95.90.131.250] File does not exist: /srv/www/web102/web/_vti_inf.html
[Tue Mar 02 16:41:37 2010] [error] [client 95.90.131.250] File does not exist: /srv/www/web102/web/_vti_bin
[Tue Mar 02 16:41:58 2010] [error] [client 95.90.131.250] File does not exist: /srv/www/web102/web/_vti_inf.html
[Tue Mar 02 16:41:58 2010] [error] [client 95.90.131.250] File does not exist: /srv/www/web102/web/_vti_bin


These are the messages found in the web.log


95.90.131.250 - - [02/Mar/2010:16:41:12 +0100] "OPTIONS / HTTP/1.1" 200 - "-" "Microsoft Data Access Internet Publishing Provider Cach$
95.90.131.250 - - [02/Mar/2010:16:41:12 +0100] "OPTIONS /webdav HTTP/1.1" 200 - "-" "Microsoft Data Access Internet Publishing Provide$
95.90.131.250 - - [02/Mar/2010:16:41:12 +0100] "GET /_vti_inf.html HTTP/1.1" 404 1256 "-" "Mozilla/2.0 (compatible; MS FrontPage 4.0)"
95.90.131.250 - - [02/Mar/2010:16:41:13 +0100] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 1256 "-" "MSFrontPage/4.0"
95.90.131.250 - - [02/Mar/2010:16:41:30 +0100] "OPTIONS / HTTP/1.1" 200 - "-" "Microsoft Data Access Internet Publishing Provider Cach$
95.90.131.250 - - [02/Mar/2010:16:41:30 +0100] "OPTIONS /webdav HTTP/1.1" 200 - "-" "Microsoft Data Access Internet Publishing Provide$
95.90.131.250 - - [02/Mar/2010:16:41:30 +0100] "GET /_vti_inf.html HTTP/1.1" 404 1256 "-" "Mozilla/2.0 (compatible; MS FrontPage 4.0)"
95.90.131.250 - - [02/Mar/2010:16:41:30 +0100] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 1256 "-" "MSFrontPage/4.0"
95.90.131.250 - - [02/Mar/2010:16:41:37 +0100] "OPTIONS / HTTP/1.1" 200 - "-" "Microsoft Data Access Internet Publishing Provider Cach$
95.90.131.250 - - [02/Mar/2010:16:41:37 +0100] "OPTIONS /webdav HTTP/1.1" 200 - "-" "Microsoft Data Access Internet Publishing Provide$
95.90.131.250 - - [02/Mar/2010:16:41:37 +0100] "GET /_vti_inf.html HTTP/1.1" 404 1256 "-" "Mozilla/2.0 (compatible; MS FrontPage 4.0)"
95.90.131.250 - - [02/Mar/2010:16:41:37 +0100] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 1256 "-" "MSFrontPage/4.0"
95.90.131.250 - - [02/Mar/2010:16:41:58 +0100] "OPTIONS / HTTP/1.1" 200 - "-" "Microsoft Data Access Internet Publishing Provider Cach$
95.90.131.250 - - [02/Mar/2010:16:41:58 +0100] "OPTIONS /webdav HTTP/1.1" 200 - "-" "Microsoft Data Access Internet Publishing Provide$
95.90.131.250 - - [02/Mar/2010:16:41:58 +0100] "GET /_vti_inf.html HTTP/1.1" 404 1256 "-" "Mozilla/2.0 (compatible; MS FrontPage 4.0)"
95.90.131.250 - - [02/Mar/2010:16:41:58 +0100] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 1256 "-" "MSFrontPage/4.0"

falko
5th March 2010, 13:55
What's the output of ls -la /srv/www/web102/web/?

poisen
5th March 2010, 15:50
this ist he output when I run: ls -la /srv/www/web102/web/


server01:/srv/www/web102/web # ls -la /srv/www/web102/web/
total 20
drwxrwxr-x 4 web102_cwdata web102 4096 2010-02-27 04:00 .
drwxr-xr-x 8 web102_cwdata web102 4096 2010-03-01 18:01 ..
drwxrwxr-x 2 web102_cwdata web102 4096 2010-02-26 11:00 error
-rw-rw-r-- 1 web102_cwdata web102 1255 2010-03-01 18:01 index.html
drwxr-xr-x 2 web102_cwdata web102 4096 2010-03-02 04:00 webalizer

falko
6th March 2010, 12:01
Hm... Looks ok. Is AppArmor disabled?

poisen
6th March 2010, 13:52
AppArmor is disabled :-( I don't really know what else could be wrong.

falko
7th March 2010, 15:02
I have no idea either... :(