Re: Help reqd. for httpd-2.4.2

2012-10-10 Thread Guenter Knauf

Hi Jitesh,
Am 10.10.2012 16:24, schrieb Jitesh Verma:

 > 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.
I just did a quick test with httpd-2.4.3 on Windows and NetWare, and 
both work fine with your configuration:

Listen 80
Listen 9000

httpd serves both ports as it should.

One thing I found though: before I did look into the manual I did just 
wrongly configure:

Listen 80 9000

this leaded to multiple crashes (on Windows) where nothing was logged to 
the error log; but eventlog entries:


Fehlgeschlagene Anwendung httpd.exe, Version 2.4.3.0, fehlgeschlagenes 
Modul libhttpd.dll, Version 2.4.3.0, Fehleradresse 0x00028628.


so seems we could here do a better check for the 2nd parameter ...

Gün.




Re: Help reqd. for httpd-2.4.2

2012-10-10 Thread Jitesh Verma
Hi Jeff,
Thanks for your reply.
I had added only the first 8 modules in httpd.conf. Remaining modules were
added later only when I started facing this problem. Reducing the number of
modules back to 8 does not make any difference with respect to this issue.
With these 8 modules httpd worked fine with port 80. The problem started
when I tried adding additional ports. Adding more ports is need of the
hour. I can not escape it. I have run strace with "follow the fork" option
(rather than single process). There are only 4 processess to follow. strace
output did not help. It does not indicate any error condition as such. I
can make it run as a single process by running httpd with -X option in
foreground. But I am not sure whether that is going to help. Anyway, I will
try that.

Thanks,
Jitesh

On Wed, Oct 10, 2012 at 6:47 PM, Jeff Trawick  wrote:

>  On Wed, Oct 10, 2012 at 7:55 AM, Jitesh Verma 
> wrote:
> > Hi List,
> > 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.
> > 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).
> > "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.
> > 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.
> >
> > Thanks,
> > Jitesh
>
> us...@httpd.apache.org is a better mailing list for this.
>
> A few things to start with...
>
> Get unnecessary modules out of the configuration to simplify
> logging/potential problems.
> See what is logged with LogLevel trace8.
> Configure the MPM to use a single child process to handle requests,
> and run strace against that.
>
> --
> Born in Roswell... married an alien...
> http://emptyhammock.com/
>


Re: Help reqd. for httpd-2.4.2

2012-10-10 Thread Jitesh Verma
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.
>
 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/mod_authz_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule dir_module modules/mod_dir.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule mime_module modules/mod_mime.so
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:
> 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.
>
 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 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.
>
 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
wrong.
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 

Re: Help reqd. for httpd-2.4.2

2012-10-10 Thread Graham Leggett
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
>  
> 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
--



smime.p7s
Description: S/MIME cryptographic signature


Re: Help reqd. for httpd-2.4.2

2012-10-10 Thread Jeff Trawick
On Wed, Oct 10, 2012 at 7:55 AM, Jitesh Verma  wrote:
> Hi List,
> 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.
> 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).
> "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.
> 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.
>
> Thanks,
> Jitesh

us...@httpd.apache.org is a better mailing list for this.

A few things to start with...

Get unnecessary modules out of the configuration to simplify
logging/potential problems.
See what is logged with LogLevel trace8.
Configure the MPM to use a single child process to handle requests,
and run strace against that.

-- 
Born in Roswell... married an alien...
http://emptyhammock.com/


Help reqd. for httpd-2.4.2

2012-10-10 Thread Jitesh Verma
Hi List,
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.
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).
"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.
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.

Thanks,
Jitesh


httpd.conf
Description: Binary data


configure.wrapper
Description: Binary data