httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jitesh Verma <>
Subject Re: Help reqd. for httpd-2.4.2
Date Wed, 10 Oct 2012 14:10:09 GMT
Hi Graham,
Thanks for your reply.
Please see my reply in-line.

On Wed, Oct 10, 2012 at 6:49 PM, Graham Leggett <> wrote:

>   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.
<Jitesh> Only the following 8 modules were enough to make my GUI/Applet
work. Remaining modules were added only after "Listen 9000" did not work. I
was just trying to see if loading all the modules make any difference. But
unfortunately, that did not help.
LoadModule authz_core_module modules/
LoadModule authz_host_module modules/
LoadModule unixd_module modules/
LoadModule dir_module modules/
LoadModule cgi_module modules/
LoadModule mime_module modules/
LoadModule alias_module modules/mod_alias.

> 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:
> <>
> Wireshark packet trace indicates that the request packet is correctly sent
> to TCP port 80 when request 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.
<Jitesh> Packet trace shows that TCP session is getting established
successfully. After that, httpd does receive the first HTTP request from
browser as is evident from /var/log/access_log. But no HTTP response goes
back to the browser. TCP session remain intact.

> "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 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.
<Jitesh> Low level options were assigned the explicit values for my
platform (Linux/Xscale) because configure script had failed to determine
these valuses as this is cross-compilation case. Those options are correct
to the best my knowledge. APR and APR-Util builds cleanly. shared libraries
(.so) of libapr, libapr-util, libpcre and libexpat have been installed
properly. These libs get loaded by httpd without any error. I am not using
any App other than httpd. My GUI/Applets is up and running with port 80, so
I do not doubt the configuration and compilation of libs. But I may be
The whole question is - httpd works fine if there is only "Listen 80". The
moment I add "Listen 9000" (or 9001) to httpd.conf, httpd stops working
even with port 80 (request with port 9000 anyway does not work). Why should
port 9000 affect the fucntionality of port 80?

> Regards,
> Graham
> --

View raw message