Hallo Leute!
ich komme nicht weiter. Vielleicht kann mir jemand weiter helfen.
Also ich wollte für ein Verzeichnis ein WebDAV-Zugang einrichten.
Leider bekomme ich kein Connect (z. B. mit cadaver)
##
Looking up hostname... Connecting to server... connected.
Could not access / (not WebDAV-enabled?):
405 Method Not Allowed
Connection to `webdav.domain.tld' closed.
dav:!> Terminated by signal 2.
##
Die Module habe ich eingebunden:
in der /etc/sysconfig/apache2
APACHE_MODULES="[...] php4 dav dav_fs"
in der httpd.conf habe ich folgendes eingetragen:
##
DavLockDB /srv/www/htdocs/web1/html/var/DavLock
Hallo Liste! Ich bin mittlerweile weitergekommen. Die Module waren eigetlich schon bereits geladen, also bestand das Problem nicht darin. Nach dem ich ein bisschen an der Config rum experementierte, konnte ich Apache dazu bringen dass ich mit Cadaver an den Promt heran kam. Es besteht aber immer noch ein Problem, er findet (oder hat kein Zugriff auf den AuthUserFile. ############# cadaver webdav.ec-thueringen.de Looking up hostname... Connecting to server... connected. Authentication required for DAV on server `webdav.domain.tld': Username: webX Password: Connecting to server... connected. Authentication required for DAV on server `webdav.domain.tld': Username: webX Password: Connecting to server... connected. Could not access / (not WebDAV-enabled?): 401 Authorization Required Connection to `webdav.domain.tld' closed. dav:!> ############# Vielleicht liegt es immer noch ander Apache-Config? <VirtualHost xxx.xxx.xxx.xxx:80> ServerName www.webdav.domain.tld ServerAlias webdav.domain.tld webX.domain.tld DocumentRoot /srv/www/htdocs/webX/html SuexecUserGroup webX ftponly DavLockDB var/DavLock Alias / /srv/www/htdocs/webX/html <Location /> Dav On AuthType Basic AuthName DAV AllowOverride AuthConfig AuthUserFile users ForceType text/plain <LimitExcept GET OPTIONS> require user admin </LimitExcept> </Location> </VirtualHost> Hat jemand eine Idee / Lösung für dieses Problem? thx & greetz! Roman
Roman Langolf schrieb:
Hallo Liste!
Ich bin mittlerweile weitergekommen. Die Module waren eigetlich schon bereits geladen, also bestand das Problem nicht darin. Nach dem ich ein bisschen an der Config rum experementierte, konnte ich Apache dazu bringen dass ich mit Cadaver an den Promt heran kam.
Es besteht aber immer noch ein Problem, er findet (oder hat kein Zugriff auf den AuthUserFile.
############# cadaver webdav.ec-thueringen.de Looking up hostname... Connecting to server... connected. Authentication required for DAV on server `webdav.domain.tld': Username: webX Password:
Connecting to server... connected. Authentication required for DAV on server `webdav.domain.tld':
Username: webX Password:
Connecting to server... connected. Could not access / (not WebDAV-enabled?): s.u: users Vermutlich wird die Datei nicht gefunden.
401 Authorization Required Connection to `webdav.domain.tld' closed. dav:!> #############
Vielleicht liegt es immer noch ander Apache-Config?
<VirtualHost xxx.xxx.xxx.xxx:80> ServerName www.webdav.domain.tld ServerAlias webdav.domain.tld webX.domain.tld DocumentRoot /srv/www/htdocs/webX/html SuexecUserGroup webX ftponly
DavLockDB var/DavLock Wo ist var? In / doch wahrscheinlich, dann schreib das hin: "/var/DavLock". Jedenfalls den ganzen Pfad!
Alias / /srv/www/htdocs/webX/html Hat denn webX Leserecht auf /? Willst Du wirklich / für DAV freigeben?
<Location /> Dav On AuthType Basic AuthName DAV AllowOverride AuthConfig AuthUserFile users
Schreib doch auch hier mal den ganzen Pfad hin.
ForceType text/plain <LimitExcept GET OPTIONS> require user admin </LimitExcept> </Location> </VirtualHost>
Hat jemand eine Idee / Lösung für dieses Problem?
-- Gruss Bernd
Hi Bernd, Liste!
ja ich habs ja schon das gemacht aber das ging nicht. hier z. B. mein
Eintrag in die confixx_vhost.conf (die dann in httpd.conf eingebunden
wird)
###
<VirtualHost x.x.x.x:80>
ServerName www.webdav.domain.tld
ServerAlias webdav.domain.tld webX.domain.tld
DocumentRoot /srv/www/htdocs/webX/html
SuexecUserGroup webX ftponly
DavLockDB /var/apache2/DavLock
Hi @ all! (Mittwoch, 3. November 2004 10:43) Roman Langolf schrieb:
Hi Bernd, Liste!
[....]
Ein Zugriff bringt das selber Fehler wie vorhin:
Looking up hostname... Connecting to server... connected. Could not access / (not WebDAV-enabled?): 405 Method Not Allowed Connection to `webdav.ec-thueringen.de' closed.
im error_log: piped log program '/usr/local/confixx/pipelog.pl' failed unexpectedly [Wed Nov 03 10:32:42 2004] [notice] caught SIGTERM, shutting down [Wed Nov 03 10:32:44 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2) [Wed Nov 03 10:32:45 2004] [notice] Apache/2.0.48 configured -- resuming normal operations
Hat denn wirklich keiner eine Idee warum das so ist? Roman
On Thu, Nov 04, 2004 at 03:07:39PM +0100, Roman Langolf wrote:
Hi @ all!
(Mittwoch, 3. November 2004 10:43) Roman Langolf schrieb:
Hi Bernd, Liste!
[....]
Ein Zugriff bringt das selber Fehler wie vorhin:
Looking up hostname... Connecting to server... connected. Could not access / (not WebDAV-enabled?): 405 Method Not Allowed Connection to `webdav.ec-thueringen.de' closed.
im error_log: piped log program '/usr/local/confixx/pipelog.pl' failed unexpectedly [Wed Nov 03 10:32:42 2004] [notice] caught SIGTERM, shutting down [Wed Nov 03 10:32:44 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2) [Wed Nov 03 10:32:45 2004] [notice] Apache/2.0.48 configured -- resuming normal operations
Hat denn wirklich keiner eine Idee warum das so ist?
Roman
Step by step: /usr/share/doc/packages/apache2/README.QUICKSTART.WebDAV Peter
Roman Langolf schrieb:
Hi Bernd, Liste!
ja ich habs ja schon das gemacht aber das ging nicht. hier z. B. mein Eintrag in die confixx_vhost.conf (die dann in httpd.conf eingebunden wird) ### <VirtualHost x.x.x.x:80> ServerName www.webdav.domain.tld ServerAlias webdav.domain.tld webX.domain.tld Hast Du das wirklich so da stehen?
DocumentRoot /srv/www/htdocs/webX/html SuexecUserGroup webX ftponly
DavLockDB /var/apache2/DavLock
Dav On AuthType Basic AuthName DAV AllowOverride AuthConfig AuthUserFile /srv/www/htdocs/webX/html/users ForceType text/plain <LimitExcept GET OPTIONS> require user webX </LimitExcept> </Location> </VirtualHost> ### Ein Zugriff bringt das selber Fehler wie vorhin:
Looking up hostname... Connecting to server... connected. Could not access / (not WebDAV-enabled?): 405 Method Not Allowed Connection to `webdav.ec-thueringen.de' closed.
im error_log: piped log program '/usr/local/confixx/pipelog.pl' failed unexpectedly Das hast Du bei der ersten Mail unterschlagen. Gibts denn /usr/local/confixx/pipelog.pl? Wie sind die Rechte. Schau mal in die Datei, vielleicht gibts da ne Möglichkeit, debugging einzuschalten.
[Wed Nov 03 10:32:42 2004] [notice] caught SIGTERM, shutting down [Wed Nov 03 10:32:44 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2) [Wed Nov 03 10:32:45 2004] [notice] Apache/2.0.48 configured -- resuming normal operations
Ist das ein strato Server? -- Gruss Bernd
Hallo Bernd & others! (Donnerstag, 4. November 2004 17:56) Bernd Obermayr schrieb:
Roman Langolf schrieb:
ja ich habs ja schon das gemacht aber das ging nicht. hier z. B. mein Eintrag in die confixx_vhost.conf (die dann in httpd.conf eingebunden wird) ### <VirtualHost x.x.x.x:80> ServerName www.webdav.domain.tld ServerAlias webdav.domain.tld webX.domain.tld
Hast Du das wirklich so da stehen?
Wie meinst du das? Das wurde von Confixx automatisch so angelegt. (die "domain" heisst natürlich anders)
DocumentRoot /srv/www/htdocs/webX/html SuexecUserGroup webX ftponly
DavLockDB /var/apache2/DavLock
Dav On AuthType Basic AuthName DAV AllowOverride AuthConfig AuthUserFile /srv/www/htdocs/webX/html/users ForceType text/plain <LimitExcept GET OPTIONS> require user webX </LimitExcept> </Location> </VirtualHost> ### Ein Zugriff bringt das selber Fehler wie vorhin:
Looking up hostname... Connecting to server... connected. Could not access / (not WebDAV-enabled?): 405 Method Not Allowed Connection to `webdav.domain.tld' closed.
im error_log: piped log program '/usr/local/confixx/pipelog.pl' failed unexpectedly
Das hast Du bei der ersten Mail unterschlagen.
sorry, über error_log habe ich am Anfang irgendwie gar nicht gedacht.
Gibts denn /usr/local/confixx/pipelog.pl?
ja
Wie sind die Rechte.
-rwxr-xr-x 1 root root /usr/local/confixx/pipelog.pl
Schau mal in die Datei, vielleicht gibts da ne Möglichkeit, debugging einzuschalten.
Die Datei enthällt: #!/usr/bin/perl ###### Confixx-Apache-PipeLog ## zum Loggen der Webzugriffe pro User ###### $logDir = "/var/log/apache2/confixx/domains/access"; $stdLog = "/var/log/apache2/confixx/stdlog_access"; while(<STDIN>){ ($domain, $log) = split(/:#:/, $_); $domain = lc($domain); if(-l "$logDir/$domain"){ open(LOG, ">>$logDir/$domain") or next; print LOG $log; close(LOG); }else{ open(LOG, ">>$stdLog") or next; print LOG "$domain :: $log"; close(LOG); } } letzte Zugriffe auf webdav.domain.tld in /var/log/apache2/confixx/domains/access/webdav.domain.tld 80.136.101.110 - - [04/Nov/2004:16:43:27 +0100] "GET / HTTP/1.1" 200 209 "-" "Mozilla/5.0 (compatible; Konqueror/3.1; Linux)" 80.136.101.110 - - [04/Nov/2004:16:43:36 +0100] "PROPFIND / HTTP/1.1" 405 973 "-" "Mozilla/5.0 (compatible; Konqueror/3.1; Linux)" 80.136.101.110 - - [04/Nov/2004:16:52:39 +0100] "OPTIONS / HTTP/1.1" 200 - "-" "cadaver/0.19.1 neon/0.18.3" 80.136.101.110 - - [04/Nov/2004:16:52:39 +0100] "PROPFIND / HTTP/1.1" 405 973 "-" "cadaver/0.19.1 neon/0.18.3" letzte Einträge in /var/log/apache2/confixx/stdlog_access (kommt wahrscheinlich von mir, ich habs local getestet/probiert localhost :: ::1 - - [01/Nov/2004:23:20:17 +0100] "GET /server-status HTTP/1.0" 404 1041 "-" "w3m/0.4.1-m17n-20030308" localhost :: ::1 - - [01/Nov/2004:23:55:32 +0100] "GET / HTTP/1.0" 200 1456 "-" "w3m/0.4.1-m17n-20030308" localhost :: ::1 - - [01/Nov/2004:23:55:46 +0100] "OPTIONS / HTTP/1.1" 200 - "-" "cadaver/0.21.0 neon/0.24.0-dev" localhost :: ::1 - - [01/Nov/2004:23:55:46 +0100] "PROPFIND / HTTP/1.1" 200 959 "-" "cadaver/0.21.0 neon/0.24.0-dev"
[Wed Nov 03 10:32:42 2004] [notice] caught SIGTERM, shutting down [Wed Nov 03 10:32:44 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2) [Wed Nov 03 10:32:45 2004] [notice] Apache/2.0.48 configured -- resuming normal operations
Ist das ein strato Server?
nein nicht von Strato aber so ähnliches, ich will hier keine Werbung machen ;-) ansonsten kann ich ja per pm sagen falls du's unbedingt wissen möchtest :-) big thx! Roman
Roman Langolf schrieb:
Hallo Bernd & others!
(Donnerstag, 4. November 2004 17:56) Bernd Obermayr schrieb:
Roman Langolf schrieb:
ja ich habs ja schon das gemacht aber das ging nicht. hier z. B. mein Eintrag in die confixx_vhost.conf (die dann in httpd.conf eingebunden wird) ### <VirtualHost x.x.x.x:80> ServerName www.webdav.domain.tld ServerAlias webdav.domain.tld webX.domain.tld
Hast Du das wirklich so da stehen?
Wie meinst du das? Das wurde von Confixx automatisch so angelegt. (die "domain" heisst natürlich anders)
Gut, schaut halt komisch aus: domain.tld ;)
sorry, über error_log habe ich am Anfang irgendwie gar nicht gedacht.
Gibts denn /usr/local/confixx/pipelog.pl?
ja
Wie sind die Rechte.
-rwxr-xr-x 1 root root /usr/local/confixx/pipelog.pl
sollte passen.
Schau mal in die Datei, vielleicht gibts da ne Möglichkeit, debugging einzuschalten.
Die Datei enthällt:
#!/usr/bin/perl ###### Confixx-Apache-PipeLog ## zum Loggen der Webzugriffe pro User ###### $logDir = "/var/log/apache2/confixx/domains/access"; $stdLog = "/var/log/apache2/confixx/stdlog_access"; while(<STDIN>){ ($domain, $log) = split(/:#:/, $_); $domain = lc($domain); if(-l "$logDir/$domain"){ open(LOG, ">>$logDir/$domain") or next; print LOG $log; close(LOG); }else{ open(LOG, ">>$stdLog") or next; print LOG "$domain :: $log"; close(LOG); } }
letzte Zugriffe auf webdav.domain.tld in /var/log/apache2/confixx/domains/access/webdav.domain.tld
Hat der Web-User hier Schreibrechte? Mehr fällt mir jetzt auch nicht mehr ein :(
[...]
letzte Einträge in /var/log/apache2/confixx/stdlog_access (kommt wahrscheinlich von mir, ich habs local getestet/probiert
localhost :: ::1 - - [01/Nov/2004:23:20:17 +0100] "GET /server-status HTTP/1.0" 404 1041 "-" "w3m/0.4.1-m17n-20030308" localhost :: ::1 - - [01/Nov/2004:23:55:32 +0100] "GET / HTTP/1.0" 200 1456 "-" "w3m/0.4.1-m17n-20030308" localhost :: ::1 - - [01/Nov/2004:23:55:46 +0100] "OPTIONS / HTTP/1.1" 200 - "-" "cadaver/0.21.0 neon/0.24.0-dev" localhost :: ::1 - - [01/Nov/2004:23:55:46 +0100] "PROPFIND / HTTP/1.1" 200 959 "-" "cadaver/0.21.0 neon/0.24.0-dev"
schaut normal aus...
Ist das ein strato Server?
nein nicht von Strato aber so ähnliches, ich will hier keine Werbung machen ;-) ansonsten kann ich ja per pm sagen falls du's unbedingt wissen möchtest :-)
Nee, nicht so wichtig ;) Aber gibts da keinen technischen Service? -- Gruss Bernd
participants (3)
-
Illuminatus@t-online.de
-
poeml@cmdline.net
-
Roman Langolf