You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by sn...@bel.co.in on 2011/08/02 07:11:59 UTC

[users@httpd] Problem with reverse proxy and file upload


Hi all,

I am using apache 2.2.15 as a reverse proxy server in
front of tomcat app server. 
https is enabled between the client and
apache reverse proxy server. Between apache and tomcat plain data
flows.

The application needs a file of  less than 500
bytes to be uploaded by user. This works fine
without reverse proxy
but fails always when used with reverse proxy.

The other pages
served by reverse proxy server are fine.

When trying to upload
the file wireshark shows the packet as "continuation or non-http
data" and the application gets stuck there.

My
configuration is as follows:

ProxyRequests Off
  
KeepAliveTimeout 500
ProxyPass / ajp://BACKEND-SERVER:8009/
ProxyPassReverse / ajp://BACKEND-SERVER:8009/
ProxyPassReverseCookiePath / /


Can anyone tell what may
be the problem???


Snigdha

P.S.: Browser used
is Internet explorer


Please send mail to @bel.co.in only 
Confidentiality Notice 
The information contained in this electronic message and any attachments to this 
message are intended for the exclusive use of the addressee(s) and may contain 
confidential or privileged information. If  you are not the intended recipient, 
 please notify the sender at Bharat Electronics  or support@bel.co.in 
immediately and destroy all copies of this message and any attachments. 

Re: [users@httpd] Re:Problem with reverse proxy and file upload

Posted by Eric Covener <co...@gmail.com>.
On Thu, Aug 11, 2011 at 8:16 AM,  <sn...@bel.co.in> wrote:
> How can Internet Explorer generate improper request???

Who knows.  Or a proxy in-between.  Have you looked at the request at
various points before it hits the webserver?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re:Problem with reverse proxy and file upload

Posted by sn...@bel.co.in.

How can Internet Explorer generate improper request???



> On Tue, Aug 9, 2011 at 7:36 AM, 
<sn...@bel.co.in> wrote:
>>
>>
Please can someone help me understand the following logs...
>>
> 
> It means your client is generating
improper POST requests.
> 
>
---------------------------------------------------------------------



Please send mail to @bel.co.in only 
Confidentiality Notice 
The information contained in this electronic message and any attachments to this 
message are intended for the exclusive use of the addressee(s) and may contain 
confidential or privileged information. If  you are not the intended recipient, 
 please notify the sender at Bharat Electronics  or support@bel.co.in 
immediately and destroy all copies of this message and any attachments. 

Re: [users@httpd] Re:Problem with reverse proxy and file upload

Posted by Eric Covener <co...@gmail.com>.
On Tue, Aug 9, 2011 at 7:36 AM,  <sn...@bel.co.in> wrote:
>
> Please can someone help me understand the following logs...
>

It means your client is generating improper POST requests.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re:Problem with reverse proxy and file upload

Posted by sn...@bel.co.in.


Please can someone help me understand the following logs...

Snigdha

  
Tomcat log did
not show any error message.

Apache error log showed the
following:

[Thu Aug 04 13:29:34 2011] [info] Server built: Jul 
4 2011 13:42:24
[Thu Aug 04 13:31:31 2011] [error]
ajp_marshal_into_msgb - No such method
-----------------------------7db157364027e
[Thu Aug 04 13:31:31 2011]
[error] ajp_send_header: ajp_marshal_into_msgb failed
[Thu Aug 04
13:31:31 2011] [error] (120010)APR does not understand this error code:
proxy: AJP: request failed to 10.10.20.10:8009 (10.10.20.10)
[Thu Aug
04 13:33:00 2011] [error] ajp_marshal_into_msgb - No such method
-----------------------------7dbf174027e
[Thu Aug 04 13:33:00 2011]
[error] ajp_send_header: ajp_marshal_into_msgb failed
[Thu Aug 04
13:33:00 2011] [error] (120010)APR does not understand this error code:
proxy: AJP: request failed to 10.10.20.10:8009 (10.10.20.10)
[Thu Aug
04 13:33:26 2011] [error] ajp_marshal_into_msgb - No such method
-----------------------------7db242314027e
[Thu Aug 04 13:33:26 2011]
[error] ajp_send_header: ajp_marshal_into_msgb failed


Apache access log showed the following:

10.10.1.111 - -
[04/Aug/2011:13:32:46 +0530] "POST
http://10.10.1.7/FileTest/servlet/JDataRead HTTP/1.0" 200 4185
10.10.1.111 - - [04/Aug/2011:13:32:49 +0530] "POST
http://10.10.1.7/FileTest/servlet/ReqFile HTTP/1.0" 200 4346
10.10.1.111 - - [04/Aug/2011:13:33:00 +0530]
"-----------------------------7dbf174027e" 500 537
10.10.1.111 - - [04/Aug/2011:13:33:26 +0530]
"-----------------------------7db242314027e" 500 537
10.10.1.111 - - [04/Aug/2011:13:33:39 +0530]
"-----------------------------7db28024027e" 500 537

For file upload I used multipart/form data.  
-----------------------------7dbf174027e, etc are actually boundary for
the multipart form data. 
I can not understand why apache will
mistake the boundary of multipart form data as a method.

Snigdha


  Why don't you check the apache and tomcat log
files when trying to upload and see if any useful messages?


Igor


On Thu, Aug 4, 2011 at 2:14 PM,  snigdhamukherjee@bel.co.in> wrote:
 
Hi,

Please
does any one have any suggestions regarding this.

Snigdha

 



  Hi all,

I am using apache
2.2.15 as a reverse proxy server in front of tomcat app server. 
https is enabled between the client and apache reverse proxy server.
Between apache and tomcat plain data flows.

The application
needs a file of  less than 500 bytes to be uploaded by user. This works
fine
without reverse proxy but fails always when used with reverse
proxy.

The other pages served by reverse proxy server are
fine.

When trying to upload the file wireshark shows the packet
as "continuation or non-http data" and the application gets
stuck there.

My configuration is as follows:

ProxyRequests Off
  
KeepAliveTimeout 500
ProxyPass /
ajp://BACKEND-SERVER:8009/
ProxyPassReverse /
ajp://BACKEND-SERVER:8009/
ProxyPassReverseCookiePath / /


Can anyone tell what may be the problem???


Snigdha

P.S.: Browser used is Internet explorer 








Please send mail to @bel.co.in only 
Confidentiality Notice 
The information contained in this electronic message and any attachments to this 
message are intended for the exclusive use of the addressee(s) and may contain 
confidential or privileged information. If  you are not the intended recipient, 
 please notify the sender at Bharat Electronics  or support@bel.co.in 
immediately and destroy all copies of this message and any attachments. 

Re: [users@httpd] Problem with reverse proxy and file upload

Posted by sn...@bel.co.in.


Tomcat log did not show any error message.

Apache error
log showed the following:

[Thu Aug 04 13:29:34 2011] [info]
Server built: Jul  4 2011 13:42:24
[Thu Aug 04 13:31:31 2011]
[error] ajp_marshal_into_msgb - No such method
-----------------------------7db157364027e
[Thu Aug 04 13:31:31 2011]
[error] ajp_send_header: ajp_marshal_into_msgb failed
[Thu Aug 04
13:31:31 2011] [error] (120010)APR does not understand this error code:
proxy: AJP: request failed to 10.10.20.10:8009 (10.10.20.10)
[Thu Aug
04 13:33:00 2011] [error] ajp_marshal_into_msgb - No such method
-----------------------------7dbf174027e
[Thu Aug 04 13:33:00 2011]
[error] ajp_send_header: ajp_marshal_into_msgb failed
[Thu Aug 04
13:33:00 2011] [error] (120010)APR does not understand this error code:
proxy: AJP: request failed to 10.10.20.10:8009 (10.10.20.10)
[Thu Aug
04 13:33:26 2011] [error] ajp_marshal_into_msgb - No such method
-----------------------------7db242314027e
[Thu Aug 04 13:33:26 2011]
[error] ajp_send_header: ajp_marshal_into_msgb failed


Apache access log showed the following:

10.10.1.111 - -
[04/Aug/2011:13:32:46 +0530] "POST
http://10.10.1.7/FileTest/servlet/JDataRead HTTP/1.0" 200 4185
10.10.1.111 - - [04/Aug/2011:13:32:49 +0530] "POST
http://10.10.1.7/FileTest/servlet/ReqFile HTTP/1.0" 200 4346
10.10.1.111 - - [04/Aug/2011:13:33:00 +0530]
"-----------------------------7dbf174027e" 500 537
10.10.1.111 - - [04/Aug/2011:13:33:26 +0530]
"-----------------------------7db242314027e" 500 537
10.10.1.111 - - [04/Aug/2011:13:33:39 +0530]
"-----------------------------7db28024027e" 500 537

For file upload I used multipart/form data.  
-----------------------------7dbf174027e, etc are actually boundary for
the multipart form data. 
I can not understand why apache will
mistake the boundary of multipart form data as a method.

Snigdha


  Why don't you
check the apache and tomcat log files when trying to upload and see if any
useful messages? 


Igor


On Thu, Aug 4, 2011 at 2:14 PM,  snigdhamukherjee@bel.co.in> wrote:
 
Hi,

Please
does any one have any suggestions regarding this.

Snigdha

 



  Hi all,

I am using apache
2.2.15 as a reverse proxy server in front of tomcat app server. 
https is enabled between the client and apache reverse proxy server.
Between apache and tomcat plain data flows.

The application
needs a file of  less than 500 bytes to be uploaded by user. This works
fine
without reverse proxy but fails always when used with reverse
proxy.

The other pages served by reverse proxy server are
fine.

When trying to upload the file wireshark shows the packet
as "continuation or non-http data" and the application gets
stuck there.

My configuration is as follows:

ProxyRequests Off
  
KeepAliveTimeout 500
ProxyPass /
ajp://BACKEND-SERVER:8009/
ProxyPassReverse /
ajp://BACKEND-SERVER:8009/
ProxyPassReverseCookiePath / /


Can anyone tell what may be the problem???


Snigdha

P.S.: Browser used is Internet explorer 






Please send mail to @bel.co.in only 
Confidentiality Notice 
The information contained in this electronic message and any attachments to this 
message are intended for the exclusive use of the addressee(s) and may contain 
confidential or privileged information. If  you are not the intended recipient, 
 please notify the sender at Bharat Electronics  or support@bel.co.in 
immediately and destroy all copies of this message and any attachments. 

Re: [users@httpd] Problem with reverse proxy and file upload

Posted by Igor Cicimov <ic...@gmail.com>.
Why don't you check the apache and tomcat log files when trying to upload
and see if any useful messages?

Igor

On Thu, Aug 4, 2011 at 2:14 PM, <sn...@bel.co.in> wrote:

>
> Hi,
>
> Please does any one have any suggestions regarding this.
>
> Snigdha
>
>
>
> Hi all,
>
> I am using apache 2.2.15 as a reverse proxy server in front of tomcat app
> server.
> https is enabled between the client and apache reverse proxy server.
> Between apache and tomcat plain data flows.
>
> The application needs a file of less than 500 bytes to be uploaded by user.
> This works fine
> without reverse proxy but fails always when used with reverse proxy.
>
> The other pages served by reverse proxy server are fine.
>
> When trying to upload the file wireshark shows the packet as "continuation
> or non-http data" and the application gets stuck there.
>
> My configuration is as follows:
>
> ProxyRequests Off
>
> KeepAliveTimeout 500
> ProxyPass / ajp://BACKEND-SERVER:8009/
> ProxyPassReverse / ajp://BACKEND-SERVER:8009/
> ProxyPassReverseCookiePath / /
>
>
> Can anyone tell what may be the problem???
>
>
> Snigdha
>
> P.S.: Browser used is Internet explorer
>
>
> ------------------------------
> *Please send mail to @bel.co.in only *
> ------------------------------
> *Confidentiality Notice *
> The information contained in this electronic message and any attachments to
> this
> message are intended for the exclusive use of the addressee(s) and may
> contain
> confidential or privileged information. If you are not the intended
> recipient,
> please notify the sender at Bharat Electronics or support@bel.co.in
> immediately and destroy all copies of this message and any attachments.
>

Re: [users@httpd] Problem with reverse proxy and file upload

Posted by sn...@bel.co.in.


Hi,

Please does any one have any suggestions regarding
this.

Snigdha


 
Hi all,

I am using apache 2.2.15 as a reverse proxy server in
front of tomcat app server. 
https is enabled between the client and
apache reverse proxy server. Between apache and tomcat plain data
flows.

The application needs a file of  less than 500 bytes to
be uploaded by user. This works fine
without reverse proxy but fails
always when used with reverse proxy.

The other pages served by
reverse proxy server are fine.

When trying to upload the file
wireshark shows the packet as "continuation or non-http data"
and the application gets stuck there.

My configuration is as
follows:

ProxyRequests Off
  
KeepAliveTimeout 500
ProxyPass / ajp://BACKEND-SERVER:8009/
ProxyPassReverse /
ajp://BACKEND-SERVER:8009/
ProxyPassReverseCookiePath / /


Can anyone tell what may be the problem???


Snigdha

P.S.: Browser used is Internet explorer 



Please send mail to @bel.co.in only 
Confidentiality Notice 
The information contained in this electronic message and any attachments to this 
message are intended for the exclusive use of the addressee(s) and may contain 
confidential or privileged information. If  you are not the intended recipient, 
 please notify the sender at Bharat Electronics  or support@bel.co.in 
immediately and destroy all copies of this message and any attachments.