Can't upload files to lighttp server

Hi *
I'm starting to have grey hairs abut this...
My sys is Archlinux (64bit), lighttpd 1.4.29-2, curl 7.22.
I'm trying to setup hhtp server with capability of upload files.
After basic setup I use following command to test functionality: 
curl -T "test_file" http://192.168.1.254/test/
curl's output is following:
[root@mythtv ~]# curl -T "test_file" http://192.168.1.254/test/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>404 - Not Found</title>
</head>
<body>
<h1>404 - Not Found</h1>
</body>
</html>
Dir "test" exists & has 777.
All dirs upper to "test" also have 777.
lighttpd access log shows following:
192.168.1.254 192.168.1.254 - [24/Nov/2011:11:57:14 +0100] "PUT /test/test_file HTTP/1.1" 404 345 "-" "curl/7.22.0 (x86_64-unknown-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.0e zlib/1.2.5 libssh2/1.3.0"
My lighttpd.conf is following:
server.modules = (
"mod_rewrite",
"mod_access",
"mod_auth",
"mod_setenv",
"mod_fastcgi",
"mod_cgi",
"mod_webdav",
"mod_accesslog" )
server.document-root = "/var/http/"
server.errorlog-use-syslog = "enable"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" , "mythweb.php" )
mimetype.assign = (
".pdf" => "application/pdf",
".sig" => "application/pgp-signature",
".spl" => "application/futuresplash",
".class" => "application/octet-stream",
".ps" => "application/postscript",
".torrent" => "application/x-bittorrent",
".dvi" => "application/x-dvi",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jar" => "application/x-java-archive",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mov" => "video/quicktime",
".qt" => "video/quicktime",
".avi" => "video/x-msvideo",
".asf" => "video/x-ms-asf",
".asx" => "video/x-ms-asf",
".wmv" => "video/x-ms-wmv",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar", # default mime type
"" => "application/octet-stream",
debug.log-request-handling = "enable"
accesslog.filename = "/var/log/web-access.log"
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
server.pid-file = "/var/run/lighttpd.pid"
server.reject-expect-100-with-417 = "disable"
fastcgi.server = (
".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/var/run/mythtv-php-fcgi.socket",
"broken-scriptfilename" => "enable",
"bin-environment" => (
"db_server" => "localhost",
"db_name" => "mythconverg",
"db_login" => "mythtv",
"db_password" => "mythtv"
setenv.add-environment = (
"db_server" => "localhost",
"db_name" => "mythconverg",
"db_login" => "mythtv",
"db_password" => "mythtv"
cgi.assign = ( ".pl" => "/usr/bin/perl",
".cgi" => "/usr/bin/perl" )
url.rewrite-once = (
"^/{1,2}mythweb/(css|data|images|js|themes|skins|[a-z_]+\.(php|pl)).*" => "$0",
"^/{1,2}mythweb/(pl(/.*)?)$" => "/mythweb/mythweb.pl/$1",
"^/{1,2}mythweb/(.+)$" => "/mythweb/mythweb.php/$1",
"^/{1,2}mythweb/(.*)$" => "/mythweb/mythweb.php"
include "/etc/lighttpd/auth-inc.conf"
Can somebody hint me where issue might be ?
Thx n advance !

@milomir,
Thx for replay.
While Your proposal is nice solution - this little now what I want to achieve.
In my application curl usage is automated (curl is called by user script).
My script has following entry:
/usr/local/bin/curl -s -f -T "<file>" "<server>/<path>/<file>"
Strange enough that I have setup which worked OK sometime ago.
Since that time I do few system upgrades - and recently I discover that posting files via curl isn't working.
Last days I was trying many combination including clean install of 64bit arch in VM and try to play with default settings.
No matter what I'm doing - all the time I'm getting 404.
I still think I miss something in configuration as i don't believe vanilla Arch/Lighttpd/Curl can't be used as http upload service with standard curt usage (like way it is used in my script).
So maybe my original Q should be following: why I can't upload files with standard curl/wget usage ?
-br

Similar Messages

  • How can i upload files from one ip address to another  ip address machine ?

    how can i upload files from one ip address to another ip address machine ?

    i need to copy files from one client m/c to server m/c like sftp
    please suggest solution on this

  • Tcode to upload file to SRM Server.

    Hi,
    We have a requirement to upload file into application server and then read the data into internal table.
    In ECC we can use the tcode CG3Y/CG3Z but this Tcode is not available in SRM Server,
    Can anyone suggest corresponding tcode in SRM server to upload data into application server.
    Thanks in advance,
    Jerin

    Jerin,
    Please go throgh the below link which will help for upload the contracts.
    http://help.sap.com/saphelp_srm40/helpdata/en/e5/2c85403e1b6e1de10000000a1550b0/content.htm
    Best Regards,
    NMK

  • Can't upload reports to crystal server

    Hello guys,
    First is the system info:
    Crystal Server XI R2 with SP3
    OS: Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
    Database: Oracle DB 10g
    This issue shall be divided into two parts.
    Parts one:
    Before the server is reinstalled we can upload some reports. But there is some limitation. When one report is changed, we can't upload it to the server directly. This report should be renamed to a different name then it can be uploaded. If we don't do so it fails with an error message says 'An unexpected error has occurred'. So every time we need to rename reports and then upload them. This workaround is OK for some reports but not all of them. No matter how we reboot the machine or restart the crystal server.
    Part two:
    One day the machine crashed and we reinstalled the crystal server. But this time it won't accept any report at all. Still it accepts other file such as *.Doc, *.PDF Etc. Every time we try to upload a report and we get an error message says 'An unexpected error has occurred'. If we use CMC to upload a report we get something more detail says 'There was an error while retrieving data from the server: Unknown exception occurred when calling into the plugin'.
    BTW, all reports are tested in report designer. They are 100% OK. All services of the crystal server are up and running.
    And one more thing, how can I attach file in this forum. I want to give dear you the log files to refer to.
    Thanks a lot.

    Hi
    It would be easier if you would keep this all in the same topic.
    As suggested in you other thread ([Can't upload reports to crystal |Can't upload reports to crystal server]), this is very likely to be a permission problem.
    Caroline

  • Can't upload file on my wiki

    Last month, I was able to upload files on my wiki with Server 4 and Yosemite. Now, something have change and the uploading just load forever without any error message. It happen even if I'm in the administrator account and on the computer of the server. I have change the permissions of the wiki folder (777), but I still can't upload files!
    How can I fix that?

    Hi Irina,
    Check this:
    /message/2977938#2977938 [original link is broken]
    Greetings,
    Praveen Gudapati
    p.s. Points are always welcome for helpful answers

  • How to upload file from Application Server?

    Dear Friends,
    How to upload file from Application Server?
    Plz. with example...
    Regards,
    Dharmesh

    hi,
    check the code for upload from application server.
    tables: kna1.
    types: begin of s_file,
             customer type kna1-kunnr,
             country  type kna1-land1,
             name     type kna1-name1,
             region   type kna1-regio,
           end of s_file.
    *--Internal tables
    data: it_file type s_file occurs 0 with header line.
    *-- Selection screen
    selection-screen: begin of block b1 with frame title text-001.
    parameter: p_file type rlgrap-filename default 'C:/customer.txt'
    obligatory.
    selection-screen: end of block b1.
    *-- At selection screen
    at selection-screen on value-request for p_file.
    perform file_help using p_file.
    *-- Process File
    start-of-selection.
      perform upload_file using p_file.
    *-- write File data to o/p
    end-of-selection.
      perform write_data.
    *&      Form  file_help
    form file_help  using    p_p_file.
      data: l_filepath type ibipparms-path.
      call function 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       importing
         file_name           = l_filepath
      p_p_file = l_filepath.
    endform.                    " file_help
    *&      Form  upload_file
    form upload_file  using    p_p_file.
      call function 'WS_UPLOAD'
       exporting
         filename                      = p_p_file
         filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
        tables
          data_tab                      = it_file
       exceptions
         conversion_error              = 1
         file_open_error               = 2
         file_read_error               = 3
         invalid_type                  = 4
         no_batch                      = 5
         unknown_error                 = 6
         invalid_table_width           = 7
         gui_refuse_filetransfer       = 8
         customer_error                = 9
         no_authority                  = 10
         others                        = 11
      if sy-subrc <> 0.
        message i001.
      endif.
    endform.                    " upload_file
    *&      Form  write_data
    form write_data .
      loop at it_file.
        write:/ it_file-customer, it_file-country, it_file-name,
                it_file-region.
      endloop.
      endform.
    regards,
    keerthi.

  • Can i transfer file from application server to lotus server.

    hi
    can i transfer file from application server to lotus server.
    i m geting file on application server but i want to transefer that file from application server to lotus server.
    if yes than give me suggestion.
    thanks in advanced.

    Hello Laxman
    If you want to trigger the file transfer from within SAP then you need to execute an <b>external OS command</b> (transaction <b>SM49</b>, <b>SM69</b>).
    At the level of the OS (operating system, e.g. Windows, Linux) you need to be able to transfer files to the Lotus server.
    Your task is, for example, to write a report executing the external OS command which will be executed at the OS level where the file transfer happens.
    Regards
      Uwe

  • Can't see files/folders on server from windows

    i'm not sure if this is related to the ACL issue (not being properly honored in Samba on Leopard), but i'll explain my problem and hopefully someone can point me in the right direction
    i've set up file sharing with my server on several Macs and a couple of PCs without a problem, but on one PC, when i connect to the server, i can't see any folders at all on the server in the Explorer window. i also can't move files to the server as it tells me i don't have permissions. i am certain this is set up the same as the other PCs and ensured that the Windows user has file sharing enabled on my server.
    please note that i'm fairly new to setting up a server so not too much jargon please!
    cheers
    ric

    The problem may be how the CD was formatted. Macs support ISO-9660 better than any other crossplatform format.
    Recently Software Architects has improved UDF support on the Mac, though I have yet to test it to see how true their claim is:
    http://www.softarch.com/us/products/rdvd.html

  • How can i upload files in servlets and also using jsp

    means that uploading files(.doc) or any files by using servlets and jsps

    yawmark wrote:
    saichand wrote:
    means that uploading files(.doc) or any files by using servlets and jsps
    [http://www.google.com/search?q=How+can+i+upload+files+in+servlets+and+also+using+jsp]
    ~Good topic titles are indeed brilliant search keywords. It's sad to see that it won't even come in the mind of the topicstarters to Google it before posting the topic.

  • In KE13N How can I Upload files

    In KE13N How can I Upload files ? , Other than file should be in which format?

    Hi
    You need to first save file description from the planning layout.
    You need to go to transaction KEPM open the planning method. It will open in excel format provided you layout is excel integrated . In the menu there will be a option to format setting do this, save the excel sheet in the desktop.
    Once you do format settings and there will be a menu appearing as save file description click on this. After this you can update the excel file downloaded to your desktop and upload through transaction KE13N.
    Anand

  • Can't access uploaded file in weblogic server

    I uploaded a file using java network and io classes.The file at the server location got permissions as rw-r----- after upload.
    But I am not able to access the file after this upload using java Runtime.
    When I execute a cp command to copy the file to another location a "can't access" error is returned.
    Tried running the server using sudo but same error.
    Weblogic server-10.3.5
    Operating system-solaris 10
    JDK6
    Running in development mode.

    Here is the zip file with all the code.  MAIN VIDAQ is the top level.
    Read VIDAQ Variables reads the .txt file.
    Thanks,
    Mark
    Attachments:
    SLDAQ Basic Software LV 2011 10.01.zip ‏1804 KB

  • How can i Upload Files from my Flex 2.0 Application?

    How can i do a Upload File funtionality with Flex 2.0? Do i
    have to make the component? How is the code in Flex/ Action Script
    to make this possible?. I'm new in this Flex world and it seems to
    me very interesting to make RIA's Applications; in fact i'm making
    a little Employees Application for my company and i'm trying this
    technology and of course i need the functionality that i asking
    for.
    Regards.
    Andres.

    I haven't tried this, but I believe what you could do is
    append
    requestHeaders to the urlrequest object that you pass into
    the file.upload()
    method. The requestHeaders is an array of name/value pairs
    that would be
    included with your post. At least in theory, I believe that
    shoudl work.
    Good luck.
    Phil
    "tantalo" <[email protected]> wrote in
    message
    news:e3q3mt$138$[email protected]..
    > Hi. Phil, how i commented in the forum the examples
    works ok, with a
    > little
    > changes to make a file Upload. Now i have another doubt,
    i need to make a
    > submit of a form with another fields and the file
    selected.
    >
    > I made a HHTP Service for that purpose with the tags
    Requests like:
    >
    > <mx:HTTPService id="empleadoRequest"
    > url="
    http://andresbarrios:8080/directorio/empleados/insertarEmpleado.jsp"
    > useProxy="false" method="POST">
    > <mx:request xmlns="">
    >
    <empresa>{empresa.selectedItem.data}</empresa>
    >
    <ubicacion>{ubicacion.selectedItem.data}</ubicacion>
    >
    <departamento>{departamento.selectedItem.data}</departamento>
    > <cedula>{cedula.text}</cedula>
    > <nombre>{nombre.text}</nombre>
    > <apellido>{apellido.text}</apellido>
    > <!--Falta Fecha de Nacimiento -->
    > <sexo>{sexo.selectedItem.data}</sexo>
    >
    <estado_civil>{estado_civil.selectedItem.data}</estado_civil>
    >
    <telefono_celular>{telefono_celular.text}</telefono_celular>
    > <extension>{extension.text}</extension>
    >
    <correo_electronico>{correo_electronico.text}</correo_electronico>
    > </mx:request>
    > </mx:HTTPService>
    > I have the global variable called "file" that contains
    the file selected.
    > I
    > want to send this file variable in the HHTPservice call
    EmpleadoRequest,
    > can i
    > do that with a Request tag like another field? or the
    only way is trougth:
    > file.upload(upload.cfm) ?;
    >
    > I want only make a one call to the server to submit the
    fields of the form
    > and
    > to upload the file at th e same time can you help me How
    can i do that?
    >
    > Thanks.
    >
    > Regards.
    >
    > Andres.
    >
    >
    >

  • Program for uploading file on application server...

    Hi,
    I have created a program to upload a file from presentation server (local desktop) to application server. But in this program I have to specify the file length. What should I do in given program so that I can upload file of any length on application server ?
    *& Report  Z_FILE_DOWNLOAD_TO_APP_SERVER                               *
    * This Program can be used to move flat files to application server from presentation server.
    REPORT  Z_FILE_DOWNLOAD_TO_APP_SERVER.
    PARAMETERS: P_FILE       LIKE IBIPPARMS-PATH,
               P_FILE1(20000) default 'E:CONVERSIONFLAT' lower case.
    DATA: WS_FILE TYPE STRING.
    DATA: BEGIN OF T_DATA OCCURS 0,
           RECORD(20000),
         END OF T_DATA.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
    IMPORTING
      FILE_NAME           = P_FILE
    START-OF-SELECTION.
    WS_FILE = P_FILE.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
       FILENAME                      = WS_FILE
      FILETYPE                      = 'ASC'
    TABLES
       DATA_TAB                      = T_DATA
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    * Creating the file at Appl server............................
    OPEN DATASET P_FILE1 FOR OUTPUT IN TEXT MODE encoding utf-8.
    if sy-subrc ne 0.
    message e000(--) with 'Error in opening file'.
    endif.
    * Trasfer the records to file.............
    loop at t_data.
    transfer t_data to p_file1.
    endloop.
    close dataset p_file1.
    if sy-subrc eq 0.
    write: / 'Written the files at ', p_file1.
    write:/ 'Goto AL11 Transaction and then click on SAP Directory DIR_SAPUSERS to look for the file'.
    endif.
    Please advice.
    Regards,
    Rajesh

    Try declaring it as TYPE STRING. Not sure though.
    There are two predefined types in ABAP with variable length:
    STRING for character strings
    XSTRING for byte strings
    Thanks,
    SKJ

  • Uploading file to Application Server using Tcode: CG3Z

    Hi Friends,
    I am facing a weird problem when uploading a file(PIPE delimited format) to application server
    using the transaction CG3Z. The data is getting truncated at the end of each row and the file size
    doesn't match with the one i had uploaded.
    Can anyone resolve this issue.
    Thanks in advance.
    Murthy

    Hi Friends
    I wrote the custom program to upload the file on application server.
    Thanks for your time.
    Murthy

  • Uploading files a landing server using webutil

    dear all,
    i have the current situation and i'm looking for solution.
    i'm using the webutil in order to upload files from the client side to a landing server, the situation here is :
    when i use the following code
    webutil_file_transfer.Client_To_AS_with_progress
    (clientFile => :upload.file_name
    ,serverFile => 'd:\temp\'||l_bare_filename
    ,progressTitle => 'Upload to Application Server in progress'
    ,progressSubTitle => 'Please wait'
    ,asynchronous => false
    ,callbackTrigger => null
    where d:\temp is alocal directory on the AS
    but if i change the server file to a drive mapping i'll have the following error
    WUT-132, my question here is it possible for the webutil to upload a file to another landing server other than AS?
    how can i do it without making a hidden share to the folder ?
    the other question if i have a firewall between the client and the AS, will it prevent the webutil uploading process ?

    i want to add another point, when we make hidden share to the map drive the uploading worked successfuly.
    what i need here is a way to access the map drive without making hidden share to the map drive?

Maybe you are looking for

  • Can I connect 2 printers to my AEBS

    Is it possible to have 2 printers connected to the AEBS with the use of an USB hub? I tried to do a search for this but was unable to find any info. Thanks much.

  • Itunes Lp not opening, why?

    My Itunes Lp was working fine. After buying Mika's new album it opened perfectly and worked fine. But after updating from itunes 9 to itunes 9.0.1 it no longer opens properly. It just cause itunes to open up a blank screen and I don't know why. If an

  • Cannot update apps getting error "cannot connect to itunes store." iphone 4

    So for 2 months I have not been able to update any of my apps due to the error code "cannot connect to itunes store.  I can download new apps, buy music, itunes works fine but I cannot update anything.  I have tried resetting, logging in and out of i

  • How do you make individual jpgs from a clipping mask of a larger jpg file?

    I have a large mosaic picture that makes up an image. I have set dimensions and a template of smaller bounding boxes that will be individual canvas's when I print them and when put together will make this larger image. I am unable to export or save i

  • [ANN] VTD-XML Version 1.8 Released

    Version 1.8 of VTD-XML is now released. The new features are: • XMLModifier is a easy to use class that takes advantage of the incremental update capability offered by VTD-XML •This release added encoding support for iso-8859-2~10, windows code page