apache http proxy - http/1.0 vs http/1.1

apache http proxy - http/1.0 vs http/1.1

Post by wap.. » Fri, 17 Nov 2000 04:00:00



Hello,

I have setup an apache proxy, which seems to work fine. But, I found
out that it doesn't not answer back http/1.1 with a http/1.1 response.
The request comes in as 1.1, but the proxy answer back with 1.0. Is
there some special configuration I need to set in httpd.conf for it
to answer with a 1.1 response?

When I send traffic to the backend machine it will answer with a 1.1
response just fine. We are using the same version of apache for both
the proxy and actual backend server.

Any hints as to what I'm missing? Thanks.

-Dan

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

apache http proxy - http/1.0 vs http/1.1

Post by Joe Schaefe » Fri, 17 Nov 2000 04:00:00



> Hello,

> I have setup an apache proxy, which seems to work fine. But, I found
> out that it doesn't not answer back http/1.1 with a http/1.1 response.
> The request comes in as 1.1, but the proxy answer back with 1.0. Is
> there some special configuration I need to set in httpd.conf for it
> to answer with a 1.1 response?

the mod_proxy that comes with Apache is a 1.0 proxy.  By the rfc's,
it's not supposed to return a 1.1 response, since it doesn't support
the advanced cacheing features of http/1.1.

Apache enforces this by checking the r->proxyreq flag just before
sending the headers.  If this flag is set, Apache downgrades the
connection to a 1.0 (closed).

There are other modules that enable 1.1 responses from mod_proxy, but
AFAIK none of them are constitute a full HTTP/1.1 proxy.  However in
your circumstance, you appear to me using mod_proxy as a reverse-proxy/
gateway, so this shouldn't be a big problem.

A simple way around this is to comment out the appropriate lines in
src/main/http_request.c and rebuild apache.

YMMV
--
Joe Schaefer

 
 
 

apache http proxy - http/1.0 vs http/1.1

Post by ASTY Patric » Sat, 18 Nov 2000 13:12:13


Joe Schaefer a crit :


> > Hello,

> > I have setup an apache proxy, which seems to work fine. But, I found
> > out that it doesn't not answer back http/1.1 with a http/1.1 response.
> > The request comes in as 1.1, but the proxy answer back with 1.0. Is
> > there some special configuration I need to set in httpd.conf for it
> > to answer with a 1.1 response?

> the mod_proxy that comes with Apache is a 1.0 proxy.  By the rfc's,
> it's not supposed to return a 1.1 response, since it doesn't support
> the advanced cacheing features of http/1.1.

> Apache enforces this by checking the r->proxyreq flag just before
> sending the headers.  If this flag is set, Apache downgrades the
> connection to a 1.0 (closed).

> There are other modules that enable 1.1 responses from mod_proxy, but
> AFAIK none of them are constitute a full HTTP/1.1 proxy.  However in
> your circumstance, you appear to me using mod_proxy as a reverse-proxy/
> gateway, so this shouldn't be a big problem.

> A simple way around this is to comment out the appropriate lines in
> src/main/http_request.c and rebuild apache.

> YMMV
> --
> Joe Schaefer

And if you want to enable KeepAlive on reverse-proxy, you could try
this:

        http://persoweb.francenet.fr/~pasty/ap_proxy_ka/

Regards,
--
ASTY Patrick
A.C.I.C.          - Tel +33 (0)1.45.32.37.00

If Windows is the answer, you didn't understand the question.

 
 
 

apache http proxy - http/1.0 vs http/1.1

Post by wap.. » Sat, 18 Nov 2000 04:00:00


Quote:> And if you want to enable KeepAlive on reverse-proxy, you could try
> this:

>    http://persoweb.francenet.fr/~pasty/ap_proxy_ka/

Hello,

What does using keepalive do for me? How is that different than the
standard keepalive directive normally used with Apache?

Thanks

-Dan

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

apache http proxy - http/1.0 vs http/1.1

Post by ASTY Patric » Sun, 19 Nov 2000 04:00:00



Quote:

> > And if you want to enable KeepAlive on reverse-proxy, you could try
> > this:

> >       http://persoweb.francenet.fr/~pasty/ap_proxy_ka/

> Hello,

> What does using keepalive do for me? How is that different than the
> standard keepalive directive normally used with Apache?

No more keepalive when you use Apache as a reverse-proxy. You could try:
        % telnet reverse-proxy 80
        GET / HTTP/1.0
        Connection: Keep-Alive

        HTTP/1.0 200 OK
        ...
        Connection: close
And the connection is closed.

With the patch, the HTTP response is:
        HTTP/1.0 200 OK
        ...
        Keep-Alive: timeout=15, max=100
        Connection: Keep-Alive
And the connection is not closed, so this speed up browser's requests
(very interesting for SSL).
--
ASTY Patrick
A.C.I.C.          - Tel +33 (0)1.45.32.37.00

If Windows is the answer, you didn't understand the question.

 
 
 

1. Apache Proxy question: HTTP/1.1 -> HTTP/1.0

I am using an apache proxy, which goes upstream to another apache proxy
in a DMZ.

My problem is this:  When using mozilla, the http request is HTTP/1.1.
The request passed to the second (DMZ) proxy is HTTP/1.0.

How can I configure the first prxy to make a 1.1 request?  Many web site
don't work when this situation occurs.

Thanks.

Brian

2. REQ: Ping Information

3. HTTP/1.0 vs HTTP/1.1 question

4. Up-to-date list of MIME types?

5. HTTP 1.0 or HTTP 1.1

6. LILO version 21.7 released

7. http 1.0 or http 1.1

8. Secure, Instant System Recovery

9. HTTP/1.0" 304 0 HTTP/1.0 304 Not

10. Apache Proxy server that will transform an HTTP request in a HTTPS request

11. proxy https & http request using apache

12. HTTP/1.0 vs 1.1??

13. HTTP 1.0 vs 1.1