Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3FFBD293 for ; Wed, 10 Oct 2012 13:20:14 +0000 (UTC) Received: (qmail 1790 invoked by uid 500); 10 Oct 2012 13:20:14 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 1427 invoked by uid 500); 10 Oct 2012 13:20:13 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 1412 invoked by uid 99); 10 Oct 2012 13:20:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 13:20:13 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_HELO_PASS,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of minfrin@sharp.fm designates 174.143.229.200 as permitted sender) Received: from [174.143.229.200] (HELO chandler.sharp.fm) (174.143.229.200) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 13:20:05 +0000 Received: from chandler.sharp.fm (localhost [127.0.0.1]) by chandler.sharp.fm (Postfix) with ESMTP id 2ECB98C8024 for ; Wed, 10 Oct 2012 08:19:44 -0500 (CDT) Received: from [192.168.88.249] (pepperpotdsl.claranet.co.uk [217.158.253.219]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: minfrin@sharp.fm) by chandler.sharp.fm (Postfix) with ESMTP id 8DBCB8C8023 for ; Wed, 10 Oct 2012 08:19:43 -0500 (CDT) From: Graham Leggett Content-Type: multipart/signed; boundary="Apple-Mail=_C5D37973-5950-4C7D-B58B-85FDFC697D62"; protocol="application/pkcs7-signature"; micalg=sha1 Message-Id: Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) Subject: Re: Help reqd. for httpd-2.4.2 Date: Wed, 10 Oct 2012 15:19:41 +0200 References: To: dev@httpd.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1498) X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_C5D37973-5950-4C7D-B58B-85FDFC697D62 Content-Type: multipart/alternative; boundary="Apple-Mail=_697A6655-F9CC-435A-923C-8AB2B0A22E76" --Apple-Mail=_697A6655-F9CC-435A-923C-8AB2B0A22E76 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 10 Oct 2012, at 1:55 PM, Jitesh Verma wrote: > We have ported httpd-2.4.2 to a network embedded box running Linux on = Xscale hardware. We have two modules of our own to handle XML requests = from our Applets. We have added all the 80 odd .so modules (that get = built with default "configure" settings) in httpd.conf. Is there a specific problem you're trying to solve by adding all 80 = modules to your server? Ideally, you should only load the modules you = need, and no more. > We are able to access the box's GUI/Applets with "Listen 80" directive = in the httpd.conf. > However, when we add another directive "Listen 9000" to httpd.conf, = httpd does not respond to HTTP request sent to port 80. The following = requests from Internet Explorer fails to get any response from httpd: > http://192.168.0.1 > http://192.168.0.1:80 > http://192.168.0.1:9000 > =20 > Wireshark packet trace indicates that the request packet is correctly = sent to TCP port 80 when request http://192.168.0.1 is sent from = browser. However, the outgoing packet is missing from the packet trace. = It seems httpd did not generate any response (not even "File not found" = response).=20 TCP involves the exchange of many packets to establish a connection, and = if a connection is not successfully established you cannot expect a = higher level response of any kind. I would first ensure that a TCP = connection is possible to establish properly before worrying about = something running above it. > "netstat -tnlp" command shows httpd listening on both TCP port 80 and = 9000. > /var/log/access_log indicates that the incoming packet reached httpd. > Gateway/firewall data indicates that both TCP ports 80 and 9000 are = open in both the directions (incoming and outgoing). > The moment additional "Listen 9000" directive is removed from = httpd.conf, httpd starts working fine (starts serving http://192.168.0.1 = request). > We have enabled and configured "debugging" and "loggers" modules. = Still, /var/log/error_log and /var/log/messages do not show any error or = warning. > =20 > We thought adding another "Listen" directive to httpd.conf is a = child's play, but it seems to be a humongous task. Multiple Listen statements is a standard thing in many installs of the = server, and will be done by definition if a server supports both http = and https. It is definitely not a humungous task. > Are we missing something? Am I doing something wrong?? Is it a bug??? = Can someone help in this forum? How to debug this issue? > =20 > Please find attached httpd.conf and configure wrapper script = (configure.wrapper) used for configuring and building httpd and its = components. Looking at your configure script that looks very wrong - you've = overridden all sorts of low level options without indicating clearly why = you've done so. As you're on what seems like custom hardware, I would = get apr and apr-util built clean and all tests run successfully before = even looking at httpd. Httpd relies heavily on apr and apr-util, and if = these underlying libraries haven't been installed or configured properly = httpd and any other app that depends on apr/apr-util are certain not to = work. Regards, Graham -- --Apple-Mail=_697A6655-F9CC-435A-923C-8AB2B0A22E76 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1
On 10 Oct 2012, at 1:55 PM, Jitesh Verma <jitesh.verma@gmail.com> wrote:

We have ported httpd-2.4.2 to a network embedded box running Linux on Xscale hardware. We have two modules of our own to handle XML requests from our Applets. We have added all the 80 odd .so modules (that get built with default "configure" settings) in httpd.conf.

Is there a specific problem you're trying to solve by adding all 80 modules to your server? Ideally, you should only load the modules you need, and no more.

We are able to access the box's GUI/Applets with "Listen 80" directive in the httpd.conf.
However, when we add another directive "Listen 9000" to httpd.conf, httpd does not respond to HTTP request sent to port 80. The following requests from Internet Explorer fails to get any response from httpd:
http://192.168.0.1
http://192.168.0.1:80
http://192.168.0.1:9000
 
Wireshark packet trace indicates that the request packet is correctly sent to TCP port 80 when request http://192.168.0.1 is sent from browser. However, the outgoing packet is missing from the packet trace. It seems httpd did not generate any response (not even "File not found" response).

TCP involves the exchange of many packets to establish a connection, and if a connection is not successfully established you cannot expect a higher level response of any kind. I would first ensure that a TCP connection is possible to establish properly before worrying about something running above it.

"netstat -tnlp" command shows httpd listening on both TCP port 80 and 9000.
/var/log/access_log indicates that the incoming packet reached httpd.
Gateway/firewall data indicates that both TCP ports 80 and 9000 are open in both the directions (incoming and outgoing).
The moment additional "Listen 9000" directive is removed from httpd.conf, httpd starts working fine (starts serving http://192.168.0.1 request).
We have enabled and configured "debugging" and "loggers" modules. Still, /var/log/error_log and /var/log/messages do not show any error or warning.
  
We thought adding another "Listen" directive to httpd.conf is a child's play, but it seems to be a humongous task.

Multiple Listen statements is a standard thing in many installs of the server, and will be done by definition if a server supports both http and https. It is definitely not a humungous task.

Are we missing something? Am I doing something wrong?? Is it a bug??? Can someone help in this forum? How to debug this issue?
 
Please find attached httpd.conf and configure wrapper script (configure.wrapper) used for configuring and building httpd and its components.

Looking at your configure script that looks very wrong - you've overridden all sorts of low level options without indicating clearly why you've done so. As you're on what seems like custom hardware, I would get apr and apr-util built clean and all tests run successfully before even looking at httpd. Httpd relies heavily on apr and apr-util, and if these underlying libraries haven't been installed or configured properly httpd and any other app that depends on apr/apr-util are certain not to work.

Regards,
Graham
--

--Apple-Mail=_697A6655-F9CC-435A-923C-8AB2B0A22E76-- --Apple-Mail=_C5D37973-5950-4C7D-B58B-85FDFC697D62 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMRDCCBU4w ggQ2oAMCAQICEFh4aE4AMxvXDqDMsrLTRhgwDQYJKoZIhvcNAQEFBQAwgd0xCzAJBgNVBAYTAlVT MRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29y azE7MDkGA1UECxMyVGVybXMgb2YgdXNlIGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEg KGMpMDkxHjAcBgNVBAsTFVBlcnNvbmEgTm90IFZhbGlkY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