Jump to content

Proxy problem :(


paragd

Recommended Posts

Hi all,,

 

I am using an apache server to act as a load balancer to my tomcat server...

 

I am using reverse proxy for doing this..

The major lines of change in my http conf are these

 

<IfModule mod_proxy.c>

ProxyRequests Off

 

<Proxy *>

Order deny,allow

Deny from all

Allow from all

SetEnv force-proxy-request-1.0 1

SetEnv proxy-nokeepalive 1

</Proxy>

 

ProxyPass /blah http://localhost:8090/blah

ProxyPassReverse /blah http://localhost:8090/blah

 

ProxyPass /blah http://localhost:8091/blah

ProxyPassReverse /blah http://localhost:8091/blah

 

 

My tomcat server conf has this line added with other appropriate changes

 

<Connector className="org.apache.catalina.connector.http.Http Connector" port="8091"

maxKeepAliveRequests="1" protocol="HTTP/1.1"

proxyPort="80"/>

 

 

Now I am getting this error in my server logs which I have no idea as to how to fix

 

[sun Apr 20 03:35:57 2008] [error] [client 66.249.85.88] proxy: error reading status line from remote server localhost

[sun Apr 20 03:35:57 2008] [error] [client 66.249.85.88] proxy: Error reading from remote server returned by blah

 

As soon as this error comes soon I am bombarded with errors like

(111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8091 (localhost) failed

 

All tht I get on my webserver is a 500 response.... I am lost.... Please help....I gooogled a lot and added

SetEnv force-proxy-request-1.0 1

SetEnv proxy-nokeepalive 1

 

and also removed keepaliverequest from tomcat. but still I soon ended up getting into this problem

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.