This is a discussion on 500 error when attempting to upload files >60K within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I have a problem whereby Apache logs a 500 error and IE gives a page cannot be displayed notice ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I have a problem whereby Apache logs a 500 error and IE gives a page cannot be displayed notice when I attempt to upload files of size greater than approximately 60KB. The upload in question uses the POST command to allow users to store arbitrary documents on the server. I know that the upload script works correctly since I am using Apache purely for it's virtualhost functionality, and when entering the full URL and port number (thus bypassing apache completely), this problem does not occur. Nothing appears in the error_log, though the following entry appears in the access_log: 10.160.132.115 - - [01/Mar/2004:09:53:34 +0000] "POST /coe/secure/uploadLOB.do HTTP/1.1" 500 639 I have tried altering various httpd.conf settings as detailed in the Apache documentation - LimitRequestBody, LimitRequestFields, LimitRequestFieldSize, LimitRequestLine, LimitXMLRequestBody - and although I am able to further reduce the size of files that can be uploaded, I have been unable to increase it past 60K. I have searched for answers both on the apache homepage and on google, but have so far not been able to resolve this issue. Any pointers would be greatly appreciated! Thanks, David. |
|
|||
|
Just to rule out some possibilities,
does the machine have enough memory? Try to decrease 'threadsperchild' in httpd.conf and see if there is any improvement at all. Is this a module specfic problem? Try to execute a script using a different module other than the one your current script is using. This way you can narrow down on the problem. Chaitan. david.j.hills@accenture.com (David H) wrote in message news:<9e99ff05.0403010241.502ff28e@posting.google. com>... > Hi, > > I have a problem whereby Apache logs a 500 error and IE gives a page > cannot be displayed notice when I attempt to upload files of size > greater than approximately 60KB. The upload in question uses the POST > command to allow users to store arbitrary documents on the server. > > I know that the upload script works correctly since I am using Apache > purely for it's virtualhost functionality, and when entering the full > URL and port number (thus bypassing apache completely), this problem > does not occur. Nothing appears in the error_log, though the > following entry appears in the access_log: > > 10.160.132.115 - - [01/Mar/2004:09:53:34 +0000] "POST > /coe/secure/uploadLOB.do HTTP/1.1" 500 639 > > I have tried altering various httpd.conf settings as detailed in the > Apache documentation - LimitRequestBody, LimitRequestFields, > LimitRequestFieldSize, LimitRequestLine, LimitXMLRequestBody - and > although I am able to further reduce the size of files that can be > uploaded, I have been unable to increase it past 60K. > > I have searched for answers both on the apache homepage and on google, > but have so far not been able to resolve this issue. Any pointers > would be greatly appreciated! > > Thanks, > > David. |
|
|||
|
In case anyone is interested, I have now managed to solve this
problem. It was down to the fact that when proxying POST requests, the weblogic proxy module firstly saves the uploaded file locally in a temporary directory before forwarding it on. This directory (/tmp/_wl_proxy) did not exist on my server, as soon as I created it, everything worked perfectly. |