logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Unable to setup hhtp.conf or file uload

 
Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner



View previous topic :: View next topic  
Author Message
odelouya



Joined: 29 Jun 2016
Posts: 1
Location: France, Les Ulis

PostPosted: Wed 29 Jun '16 19:58    Post subject: Unable to setup hhtp.conf or file uload Reply with quote

Hello Everybody!

I did write in the past for a customer a customized client program which, beyond other things,
did upload files into a subdirectory tree of a mongoose http server.
As far as I remember, enabling file upload was as simple as setting to 1 the field "Enable WebDAV extentions"
in the mongoose site administration page, and that's all!
Now, for security reasons, the customer IT managers impose them to switch to Apache 2.4 and explicit permissions.
I am currently struggling with Apache configuration concepts, and still unable to setup any piece of configuration
that would allow one client to upload files.. (I am starting from the ground in Apache!)

The context: the server is a Windows 2008 64 bits, running the last available Apache version.
The clients are a linux boxes (redhat, opensuse, ubuntu and debian), running perl scripts and commands.
HTTP dialog run thru wget and curl commands.
Typical upload requests are:
curl --fail --verbose --upload-file file.tz2 http://mystation:8080/upload-zone/Linux-10/ # file
(echo "This is my header!" && tar czf - *)|curl --fail --verbose -H "Content-Length: 20000000" --upload-file - http://mystation:8080/upload-zone/Linux-10/dir/allfiles.tz2 # tar-ed stream
The final intent is that each "approved" remote client should be explicitly declared in the httpd.conf
so that it is allowed to upload files into 'its' upload area subfolder (possibly creating, deleting intermediate
levels and files inside and only inside its subtree)
This would also include some basic authentication, but it is not the question as of today, since I am not even capable
of uploading one byte to the server, spending hours in tweaking the httpd.conf file, not trying to restrict upload to any particular remote client!
All I get with the client code is, most of the time a 405 error: Method not allowed.
What are the basic settings to allow file upload, from anywhere - no restriction?
Then, is a per-client authoring is possible? ("virtual host"? or what other approach would achieve the objective?)

Thanks in advance to help me, I am completely stuck..

OD.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6202
Location: Germany, Next to Hamburg

PostPosted: Mon 04 Jul '16 16:45    Post subject: Reply with quote

Please post the vhost config.
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner
Page 1 of 1