You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Pieter Vanmeerbeek <pi...@able.be> on 2006/06/27 17:51:40 UTC
[users@httpd] Apache reverse proxy and connection keep alive
Hi,
I'm using apache 2.0.53 as a reverse proxy for a simple html backend server.
Internet <-- http--> reverse proxy <--http--> server on lan
I was wondering how a connection keep alive can be activated for the
communication between the reverse proxy and server on lan. Is it just a
matter of adding an Connection: Keep-Alive header and ifso how do I do that?
In my config keepalive is activated (see below). I can see the keepalive on
the first connection (between internet and reverse proxy) while dumping,
however no connection header is added/used in the second connection (reverse
proxy towards server on lan).
<<<<<>>>>
Minimal Apache config :
ServerRoot "/ub/pkg/httpd"
PidFile /var/run/httpd-rev.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
### Section 2: 'Main' server configuration
User sysdaemon
Group sysdaemon
UseCanonicalName Off
TypesConfig conf/mime.types
DefaultType text/plain
HostnameLookups Off
Listen 195.0.83.244:80
<VirtualHost 195.0.83.244:80>
ProxyRequests Off
ProxyPreserveHost On
# enable Reverse re-writing
ProxyPass / http://192.168.5.254:81/
ProxyPassReverse / http://192.168.5.254:81/
# Logging
TransferLog /data/system-logs/appfw/testkk/access/2006-06-27
ErrorLog /data/system-logs/appfw/testkk/error/2006-06-27
RewriteLog /data/system-logs/appfw/testkk/rewrite/2006-06-27
RewriteLogLevel 9
</VirtualHost>
--
---------------------------------------------------
Able: 1996-2006: already 10 safe years in YOUR company!
aXs GUARD has completed security and anti-virus checks on this e-mail (http://www.axsguard.com)
---------------------------------------------------
Able NV: ond.nr 0457.938.087
RPR Mechelen
---------------------------------------------------------------------
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
RE: [users@httpd] Apache reverse proxy and connection keep alive
Posted by Pieter Vanmeerbeek <pi...@able.be>.
Indeed, Apache 2.1.1 contains a fix for this
Thanks
Pieter
-----Original Message-----
From: jslive@gmail.com [mailto:jslive@gmail.com] On Behalf Of Joshua Slive
Sent: dinsdag 27 juni 2006 22:09
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache reverse proxy and connection keep alive
On 6/27/06, Pieter Vanmeerbeek <pi...@able.be> wrote:
> Hi,
>
> I'm using apache 2.0.53 as a reverse proxy for a simple html backend
server.
>
> Internet <-- http--> reverse proxy <--http--> server on lan
>
> I was wondering how a connection keep alive can be activated for the
> communication between the reverse proxy and server on lan. Is it just a
> matter of adding an Connection: Keep-Alive header and ifso how do I do
that?
You can't do anything about this in the config.
I haven't followed this issue too closely, but I'd guess you can fix
this problem by upgrading to 2.2.2.
Joshua.
---------------------------------------------------------------------
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
--
---------------------------------------------------
Able: 1996-2006: already 10 safe years in YOUR company!
aXs GUARD has completed security and anti-virus checks on this e-mail (http://www.axsguard.com)
---------------------------------------------------
Able NV: ond.nr 0457.938.087
RPR Mechelen
---------------------------------------------------------------------
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
Re: [users@httpd] Apache reverse proxy and connection keep alive
Posted by Joshua Slive <jo...@slive.ca>.
On 6/27/06, Pieter Vanmeerbeek <pi...@able.be> wrote:
> Hi,
>
> I'm using apache 2.0.53 as a reverse proxy for a simple html backend server.
>
> Internet <-- http--> reverse proxy <--http--> server on lan
>
> I was wondering how a connection keep alive can be activated for the
> communication between the reverse proxy and server on lan. Is it just a
> matter of adding an Connection: Keep-Alive header and ifso how do I do that?
You can't do anything about this in the config.
I haven't followed this issue too closely, but I'd guess you can fix
this problem by upgrading to 2.2.2.
Joshua.
---------------------------------------------------------------------
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