Subject: Bug#3735: cern-httpd doesn't send fqdn on redirect

From: Sven Rudolph <[email-masked]>
Date: Tue, 9 Jul 1996 21:56:28 +0200

Package: cern-httpd
Version: 3.0-6

When a URL in a HTTP/1.0 request points to a directory without
trailing slash the server sends a redirect back.

In this requests it gives the new URL with the added slash.

However the new URL contains the server name in the domainless
form. This makes it very difficult for sites in other domains to fetch
the document.

Example:
$ telnet os 80 
Trying 141.76.20.100...
Connected to os.inf.tu-dresden.de.
Escape character is '^]'.
GET /~someuser HTTP/1.0

HTTP/1.0 302 Found
MIME-Version: 1.0
Server: CERN/3.0
Date: Tuesday, 09-Jul-96 19:49:13 GMT
Location: http://os/~someuser/
Content-Type: text/html
Content-Length: 374

I fixed this by adding the following to /etc/cern-httpd.conf :

  # Use this instead of the DNS canonical hostname
  HostName        os.inf.tu-dresden.de

A better fix would be to fix the sources, however there are no active
maintainers foer CERN httpd now ...

	Sven
-- 
Sven Rudolph <[email-masked]> ; WWW : http://www.sax.de/~sr1/