Project

General

Profile

lighttpd webdav windows 7 (not work), windows 10 (work-OK) and Linux (work-OK). strange behavior.

Added by AnastasiaMinik almost 4 years ago

I configured lighttpd/1.4.55 (ssl) for webdav on Ubuntu 20.04 LTS server.
I can connect via webdav to the server from a linux computer, everything works fine.
I can connect via webdav to the server from a Windows 10 computer, everything works fine.
But I can't connect via webdav to the server from a Windows 7 SP1 x64 computer, NOT work.
But I can connect to any other Webdav server using this windows 7 SP1 x64 computer.

I can't find out where the problem is? Why it doesn't work lighttpd webdav on windows 7 SP1 x64?

/etc/lighttpd/lighttpd.conf:

server.modules = (
        "mod_indexfile",
        "mod_access",
        "mod_alias",
        "mod_redirect",
)

server.document-root        = "/var/www/html" 
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log" 
server.pid-file             = "/run/lighttpd.pid" 
server.username             = "www-data" 
server.groupname            = "www-data" 
server.port                 = 80

server.http-parseopts = (
  "header-strict"           => "enable",# default
  "host-strict"             => "enable",# default
  "host-normalize"          => "enable",# default
  "url-normalize-unreserved"=> "enable",# recommended highly
  "url-normalize-required"  => "enable",# recommended
  "url-ctrls-reject"        => "enable",# recommended
  "url-path-2f-decode"      => "enable",# recommended highly (unless breaks app)
  "url-path-dotseg-remove"  => "enable",# recommended highly (unless breaks app)
)

index-file.names            = ( "index.php", "index.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/" 
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

include_shell "/usr/share/lighttpd/create-mime.conf.pl" 
include "/etc/lighttpd/conf-enabled/*.conf" 

server.modules += (
        "mod_compress",
        "mod_dirlisting",
        "mod_staticfile",
)

$HTTP["host"] == "10.20.30.40:443" {
    server.document-root = "/var/www/html" 
    alias.url            = ( "/webdav" => "/var/www/webdav" )
    $HTTP["url"] =~ "^/webdav($|/)" {
    dir-listing.activate = "enable" 
    webdav.activate      = "enable" 
    webdav.is-readonly   = "disable" 
    auth.backend         = "htpasswd" 
    auth.backend.htpasswd.userfile = "/etc/lighttpd/passwd.dav" 
    auth.require         = ( "" => ( "method"  => "basic",
                                     "realm"   => "webdav",
                                     "require" => "valid-user" ) )
  }
}

enabled after installation:
lighty-enable-mod auth
lighty-enable-mod webdav
lighty-enable-mod ssl

inside the file:
/etc/lighttpd/conf-enabled/05-auth.conf:

server.modules                += ( "mod_auth" )

/etc/lighttpd/conf-enabled/10-ssl.conf:

server.modules += ( "mod_openssl" )

$SERVER["socket"] == "0.0.0.0:443" {
        ssl.engine  = "enable" 
        ssl.pemfile = "/etc/lighttpd/webdav.pem" 
        ssl.cipher-list = "HIGH" 
}

/etc/lighttpd/conf-enabled/10-webdav.conf:

server.modules += ( "mod_webdav" )
webdav.sqlite-db-name = "/var/cache/lighttpd/lighttpd.webdav.db" 

/var/log/lighttpd/error.log:

2020-05-06 00:02:13: (server.c.1970) server stopped by UID = 0 PID = 1
2020-05-06 00:02:14: (server.c.1488) server started (lighttpd/1.4.55)
2020-05-06 00:02:56: (mod_openssl.c.1762) SSL: -1 5 104 Connection reset by peer
2020-05-06 00:02:56: (mod_openssl.c.1762) SSL: -1 5 104 Connection reset by peer
2020-05-06 00:25:09: (mod_openssl.c.1762) SSL: -1 5 104 Connection reset by peer
2020-05-06 00:25:09: (mod_openssl.c.1762) SSL: -1 5 104 Connection reset by peer

in the windows console when connecting:

> net use w: https://10.20.30.40:443/webdav /PERSISTENT:NO /USER:minik PasSwOrd

System error 67.
The network name cannot be found.


Replies (7)

RE: lighttpd webdav windows 7 (not work), windows 10 (work-OK) and Linux (work-OK). strange behavior. - Added by gstrauss almost 4 years ago

Microsoft ended support for Windows 7 on January 14, 2020, and I do not have a system under which to test.

While your bug report is nicely detailed, have you considered that you are reporting that lighttpd mod_webdav works for you on some client platforms but not others, and that you should probably spend time configuring those non-working client platforms rather than blaming lighttpd? If lighttpd mod_webdav works for you on Windows 10, but not on Windows 7, why would you conclude that this is a problem with lighttpd?

Is your Windows 7 machine patched to latest Microsoft patches?

For testing purposes only, and temporarily, have you configued the webdav server to be available on port 80, without TLS, and tried to connect the Windows 7 machine?

Using IE on Windows 7, can you access a file on the webdav server with an HTTP GET? If not, ssl.cipher-list = "HIGH" might need to be adjusted for Windows 7 compatibility.

You may need to configure the registry to support Basic auth, but you should understand the implications of doing so before changing the registry.
(Use a search engine for \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlset\services\WebClient\Parameters\BasicAuthLevel )
You should instead prefer to configure lighttpd to use Digest auth ("method" => "digest")

Try a search engine, and try different syntax in your command:
https://superuser.com/questions/254113/how-to-connect-to-an-https-webdav-folder-on-windows-7

RE: lighttpd webdav windows 7 (not work), windows 10 (work-OK) and Linux (work-OK). strange behavior. - Added by AnastasiaMinik almost 4 years ago

While your bug report is nicely detailed, have you considered that you are reporting that lighttpd mod_webdav works for you on some client platforms but not others, and that you should probably spend time configuring those non-working client platforms rather than blaming lighttpd? If lighttpd mod_webdav works for you on Windows 10, but not on Windows 7, why would you conclude that this is a problem with lighttpd?

other webdav servers run on windows 7, I can connect. there may be a problem with SSL, perhaps somewhere else.

Is your Windows 7 machine patched to latest Microsoft patches?

all patches are installe

For testing purposes only, and temporarily, have you configued the webdav server to be available on port 80, without TLS, and tried to connect the Windows 7 machine?

how do I do this correctly?

Using IE on Windows 7, can you access a file on the webdav server with an HTTP GET?

I can open the page via IE, I am asked for my username and password and they are suitable. everything works.

You may need to configure the registry to support Basic auth, but you should understand the implications of doing so before changing the registry.

(Use a search engine for \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlset\services\WebClient\Parameters\BasicAuthLevel )
I know about this parameter there is BasicAuthLevel=2

You should instead prefer to configure lighttpd to use Digest auth ("method" => "digest")

I'm changing the values to these, but it also doesn't help to connect using windows 7

auth.backend = "htpasswd" 
auth.backend.htpasswd.userfile = "/etc/lighttpd/passwd.dav" 
auth.require = ( "" => ( "method" => "basic",

Try a search engine, and try different syntax in your command

all possible options have been tried, I can't connect. on the same server, I configured apache2 and it works, but the lighttpd program does not work.
perhaps I need to change some lighttpd settings, tell me what I should try to change ?

RE: lighttpd webdav windows 7 (not work), windows 10 (work-OK) and Linux (work-OK). strange behavior. - Added by gstrauss almost 4 years ago

Microsoft ended support for Windows 7 on January 14, 2020, and I do not have a system under which to test.

RE: lighttpd webdav windows 7 (not work), windows 10 (work-OK) and Linux (work-OK). strange behavior. - Added by AnastasiaMinik almost 4 years ago

Microsoft ended support for Windows 7 on January 14, 2020, and I do not have a system under which to test.

this is not a problem. If you want you can install the windows 7 system on virtualbox. If the system is no longer supported it does not mean that people have stopped using it.

https://moblog.wiredwings.com/archives/20110406/webdav-windows-7-and-self-signed-certificates-howto.html

the instructions don't work. the result is the same:

System error 67.
The network name cannot be found.

RE: lighttpd webdav windows 7 (not work), windows 10 (work-OK) and Linux (work-OK). strange behavior. - Added by gstrauss almost 4 years ago

Your problem (not my problem) is Windows 7. Windows 7 is end-of-life from Microsoft and no longer receiving security patches. While people may not have stopped using it, continuing to use Windows 7 is irresponsible and reflects poorly on them.

If you insist on using Windows 7, please use a search engine to configure Windows 7 properly.
https://docs.microsoft.com/en-us/iis/publish/using-webdav/using-the-webdav-redirector
You will receive no further responses from me here.

RE: lighttpd webdav windows 7 (not work), windows 10 (work-OK) and Linux (work-OK). strange behavior. - Added by AnastasiaMinik almost 4 years ago

OK. Thank you for support.
I can't use your program, so I'll use another one. Apache works, but unfortunately will require more resources.
Thank you, have a nice day

    (1-7/7)