Re: telnet ok, HTTP not
Jeff King <[email protected]> Tue, 19 Nov 2002 12:01:43 -0500 (EST)
| Newsgroups | gmane.comp.djb.publicfile |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 19 Nov 2002, Alexandros Papadopoulos wrote: > Now, when I try to view my start page from another machine (lynx > 123.123.123.123:55555), I get a fast 404 not found error from > publicfile. > > Right after that, and from the same machine, I do a telnet > 123.123.123.123 55555, get instantly connected, and with a GET I can > see my page! (or any page in the site, for that matter) When lynx sends the HTTP request, it specifies the server as 123.123.123.123:55555 on the Host: line. IIRC, publicfile will look for the file in /var/public/file/123.123.123.123:55555. Make sure that directory exists (or is a symlink to your actual content). When you do the GET request manually, I assume you are doing an HTTP/1.0 request or filling in something sensible in the Host: field. -Peff