I am using Apache front 2.2 as front end for Glasshfish 3.1on Ubuntu 11.04
I have configured Apache Virtual host and Glassfish application is being served by one of the Virtual host.
I have observed that the file uploading module of my application is giving errors time and again. I am using Apache file upload library.
When I try to upload the file (even smaller sized files) the Glassfish gives following error.
-------------------
Bad Gateway
The proxy server received an invalid response from an upstream server.
Additionally, a 400 Bad Request error was encountered while trying to use an
ErrorDocument to handle the request.
------------------------------------------------
What could be the possible cause? The proxytime out is set to 600 in virtual host configuration file.Here is configuration file
----------------------
----------------------------
<VirtualHost *:80>
ServerAdmin myid@mymail.in
ServerName www.myapp.in
ServerAlias myapp.in
# Indexes + Directory Root.
DirectoryIndex index.jsp
DocumentRoot /webapps/webmyapp/
## JK module to work with Glassfish
JkMount /* worker1
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
Timeout 600
ProxyPass / [
localhost:7777...]
ProxyPassReverse / [
localhost:7777...]
ProxyPassReverse /myapp/* [
localhost:7777...]
ProxyTimeout 600
## comment ends here
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
TraceEnable Off
</VirtualHost>