Special response for HTTP/1.0 reqs in Apache?

Special response for HTTP/1.0 reqs in Apache?

Post by Alan J. Flavel » Thu, 28 Oct 1999 04:00:00

> GET / HTTP/1.0<CR><CR>

> a unique doc would be sent (where I could place a message saying
> we want HTTP/1.1 compatible browsers only).  :-)

I think you may be confused.  Sending a Host: header is both legal and
useful in HTTP/1.0, and many clients have been doing it for years now;
if that's all that you're trying to get, then you'll be pointlessly
turning away a large fraction of users by insisting on an HTTP/1.1

Just configure your first virtual host entry to be none of the Host:
names that you want to support.  That entry will then be used whenever
a call is made without a Host header, and you can send them whatever you
want to send them.

Review the Apache virtual host tutorial for details.


1. apache http proxy - http/1.0 vs http/1.1


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.


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

2. Direct mail access w/Netscape

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

4. Missing /usr/lib/shlib.etc in Solaris2.x

5. Subject: Ksh93 question: special built-ins: why are they special?

6. VLB video card that work in X (1024/768)

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

8. FTP-problem

9. 302 Response to HTTP/1.0 GET on Cobalt RaQ 3i

10. \\\ Professional Images Virtual Domains/// Special Special Special Special

11. Howto rewrite HTTP response headers with Apache?

12. Why my https was no response on Apache 1.3.14?

13. updatemanager : Server returned HTTP response code: 403 for URL: https://getupdates.sun .com/solaris/