Michael Sperber [Mr. Preprocessor] wrote:
>>>>>>"Felix" == Felix Winkelmann <felix@proxima-mt.de> writes:
>>>>>
>
> Felix> Martin Gasbichler wrote:
>
>>>Do you see this initial output?
>>>[0 gasbichl@ventoux sunet] ./start-web-server -p 4242
>>>Loading...
>>>reading options: ("-p" "4242")
>>>Going to run Webserver with:
>>> htdocs-dir: /home/gasbichl/sw/sunet/web-server/root/htdocs
>>> cgi-bin-dir: /home/gasbichl/sw/sunet/web-server/root/cgi-bin
>>> port: 4242
>>> log-file-name: /home/gasbichl/sw/sunet/web-server/httpd.log
>>> syslogging activated.
>>
> Felix> >
>
> Felix> Yes.
>
> Felix> When I fake a HTTP request programmatically I get no
> Felix> response data (not even the HTTP header).
>
> Any log or syslog output?
>
I start the web-server like this:
---
% start-web-server -p 4242
Loading...
reading options: ("-p" "4242")
Going to run Webserver with:
htdocs-dir: /home/felix/sunet-2.0/web-server/root/htdocs
cgi-bin-dir: /home/felix/sunet-2.0/web-server/root/cgi-bin
port: 4242
log-file-name: /home/felix/sunet-2.0/web-server/httpd.log
syslogging activated.
%
---
Telnet output (localhost:4242):
---
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
<html>
<head>
<title>Internal Server Error</title>
</head>
<body>
<h1>Internal Server Error</h1>
The server encountered an internal error or misconfiguration and was unable
to complete your request.
<p> Please inform the server administrator, [no mail address available],
of the circumstances leading to the error, and time it occured. <br>
Further Information: Internal error occured while processing request<br>
<br>
bad-address <br>
"dns-error: dns-get-information: bad address (in combination with query type)"
</p>
<br>
</body>
</html>
---
(note the missing HTTP-header above)
syslog:
---
May 26 20:32:55 moehre httpd: <1472>127.0.0.1 [closed]
May 26 20:33:16 moehre su: pam_unix2: session finished for user nobody, service
su
May 26 20:42:07 moehre httpd: <1472>127.0.0.1: GET / HTTP/1.0
May 26 20:42:07 moehre httpd: <1472>127.0.0.1: error: (bad-address "dns-error:
dns-get-information:
bad address (in combination with query type)")
May 26 20:42:07 moehre httpd: <1472>127.0.0.1 [closing]
May 26 20:42:07 moehre httpd: <1472>127.0.0.1 [closed]
May 26 20:42:14 moehre httpd: <1472>127.0.0.1: GET / HTTP/1.1
May 26 20:42:14 moehre httpd: <1472>127.0.0.1: error: (bad-address "dns-error:
dns-get-information:
bad address (in combination with query type)")
May 26 20:42:14 moehre httpd: <1472>127.0.0.1 [closing]
May 26 20:42:14 moehre httpd: <1472>127.0.0.1 [closed]
---
Invoking `(httpd ...)' directly doesn't make a difference.
cheers,
felix
|