Re: telnet ok, HTTP not

Alexandros Papadopoulos <[email protected]> Tue, 19 Nov 2002 14:46:49 -0500
Newsgroups gmane.comp.djb.publicfile
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 19 November 2002 14:26, Paul Jarc wrote:
> Alexandros Papadopoulos <[email protected]> wrote:
> > GET / HTTP /1.0
> > Host: 128.2.66.150:55555
> >
> > HTTP/1.1 404 file does not exist
> > Server: publicfile
>
> As Jeff said, you need to create a symlink called
> /public/file/128.2.66.150:55555 pointing to /public/file/0.

Okay, here's my setup (some info snipped for brevity):

[root@helios /home/alex]$ ls -al /public/file/
total 12
drwxr-sr-x    3      4096 Nov 19 14:40 .
drwxr-sr-x    5      4096 Nov 18 15:12 ..
drwxr-sr-x    3      4096 Nov 19 14:18 0
lrwxrwxrwx    1     14 Nov 18 16:16 10.6.22.1 -> /public/file/0
lrwxrwxrwx    1     1 Nov 18 15:57 127.0.0.1 -> 0
lrwxrwxrwx    1    14 Nov 19 14:38 128.2.66.150:55555 -> /public/file/0
lrwxrwxrwx    1    1 Nov 18 15:50 localhost -> 0
[root@helios /home/alex]$ telnet 128.2.66.150 55555
Trying 128.2.66.150...
Connected to 128.2.66.150.
Escape character is '^]'.
GET HTTP 1.0
Host: 128.2.66.150

HTTP/1.1 404 file does not exist
Server: publicfile
Date: Tue, 19 Nov 2002 19:41:57 GMT
Content-Length: 47
Connection: close
Content-Type: text/html

<html><body>file does not exist</body></html>
Connection closed by foreign host.
[root@helios /home/alex]$ telnet 128.2.66.150 55555
Trying 128.2.66.150...
Connected to 128.2.66.150.
Escape character is '^]'.
GET
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Why linux?</title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<h1>Why linux?</h1>
... rest of page follows

I still don't get it. :-(

- -A
- -- 
http://andrew.cmu.edu/~apapadop/pub_key.asc
3DAD 8435 DB52 F17B 640F  D78C 8260 0CC1 0B75 8265
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE92pUpgmAMwQt1gmURAnyIAJ9EU9Wy7adPQDVa9dICQXUuz4pwuwCfQEAx
jSGFuqLfSHfzPcN3rfVWLnc=
=UPnz
-----END PGP SIGNATURE-----