Mailing List Archive

[Bug 7896] New: - Report wrong port
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7896>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7896

Report wrong port

Summary: Report wrong port
Product: Apache httpd-2.0
Version: 2.0.35
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: All
AssignedTo: bugs@httpd.apache.org
ReportedBy: fdepujo@nc.rr.com


I have apache 2.0 running, on port 97 so I can mess with it and leave 80 be. I
decided to see what headers it was reporting, so I telneted and typed a simple
query:

telnet> open localhost 97
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1

HTTP/1.1 400 Bad Request
Date: Tue, 09 Apr 2002 22:20:20 GMT
Server: Apache/2.0.35 (Unix)
Content-Length: 382
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23):
/</p>
<hr />
<address>Apache/2.0.35 Server at localhost.localdomain Port 80</address>
</body></html>
Connection closed by foreign host.

It reports that it's listening on Port 80, ie. the wrong port.