Project

General

Profile

[UE] Need client to send a HTTP PUT. lighttpd/1.4.51 (ssl)

Added by Anonymous 3 months ago

Version of Lighttpd being used: lighttpd/1.4.51 (ssl) - a light and fast webserver
OS: Ubunutu 22.04 for testing on my machine.

Problem trying to solve:
I have tried using a curl command to do a PUT and also via python script.
I can see the incoming message via tcpdump on the server hosted computer.
But there is no disk write to the directory.

(I Did setup some directories with full write permission (chmod 777) via sh script)

Is there something i can do within this version, to get this to work?

HEre is a snippet of the server.modules being used.

############ Options you really have to take care of ####################

## modules to load
# at least mod_access and mod_accesslog should be loaded
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules              = (
#                               "mod_rewrite",
#                               "mod_redirect",
#                               "mod_alias",
                                "mod_access",
#                               "mod_cml",
#                               "mod_trigger_b4_dl",
#                               "mod_auth",
#                               "mod_status",
#                               "mod_setenv",
#                               "mod_fastcgi",
#                               "mod_proxy",
#                               "mod_simple_vhost",
#                               "mod_evhost",
#                               "mod_userdir",
#                               "mod_cgi",
#                               "mod_compress",
#                               "mod_ssi",
#                               "mod_usertrack",
#                               "mod_expire",
#                               "mod_secdownload",
#                               "mod_rrdtool",
#                                "mod_webdav",
                                "mod_accesslog" )

I noticed that mod_webdav is only supported in a higher version. Seeking something lightweight to allow the client to send files to the server?

Replies (5)

Follow up correction to above snippet > Need client to send a HTTP PUT. lighttpd/1.4.51 (ssl) - Added by Anonymous 3 months ago

By the way the ignore the numbers above.
the only modules active are:
"mod_access",
"mod_accesslog"

RE: Need client to send a HTTP PUT. lighttpd/1.4.51 (ssl) - Added by gstrauss 3 months ago

I noticed that mod_webdav is only supported in a higher version.

Not true. lighttpd mod_webdav was enhanced in later versions.

Seeking something lightweight to allow the client to send files to the server?

A CGI script. Another option is lighttpd mod_webdav.

(I Did setup some directories with full write permission (chmod 777) via sh script)

mode 777 is almost always unnecessary, and is usually wrong, even if you are on a private network with no access from the internet.


Additionally, developing a new feature on an over 4 year old version of lighttpd is amateur and probably not a good use of your time.

RE: Need client to send a HTTP PUT. lighttpd/1.4.51 (ssl) - Added by Anonymous 3 months ago

Thanks gstrauss for the replies gstrauss and the advice. I appreciate the points.

Reason we are sing 1.4.51, is because this is reawakening an older setup for a new request.
However we will upgrading to a newer version next week.
Any suggestions of which version is stable for use now?

I did try adding mod_webdav into the conf serveer, and the lighttpd simply failed to start.
I am problably missing something very trivial. Perhaps webdav is not automatically included as part 1.4.51?
I wonder if there is something else to be done within the start up sh script for this.

Sorry for the newbie questions, newbie here in this area.

server.modules = (
"mod_access",
"mod_webdav",
"mod_accesslog" )

this leads to a failure to "start the service".

RE: Need client to send a HTTP PUT. lighttpd/1.4.51 (ssl) - Added by gstrauss 3 months ago

@somedev you are not a developer, although you seem to have named yourself such. Thus far, you have demonstrated the abilities of a first year student.

I did try adding mod_webdav into the conf serveer, and the lighttpd simply failed to start.

How to get support

Please STUDY the above, especially the external link on how to ask a good technical question.

I am problably (sic) missing something very trivial.

Yes. You are missing many trivial things.

RE: Need client to send a HTTP PUT. lighttpd/1.4.51 (ssl) - Added by Anonymous 3 months ago

Sounds good. Will get back to you with a better report soon.

    (1-5/5)