Web Servers on Unix and Linux - Where is the apache main loop???

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > March 2004 > Where is the apache main loop???





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Where is the apache main loop???
JoeAley2003

2004-03-05, 1:35 am

Hi all...

I need to listen to http and https requests. So, i thougth using the
apache source code, but i can't identify where is the main (listen)
routine...
Where is the function who waits for a connection???

Any hint?

Thank you all!
Owen Jacobson

2004-03-05, 8:35 pm

On Thu, 04 Mar 2004 22:26:44 -0800, JoeAley2003 wrote:

> Hi all...
>
> I need to listen to http and https requests. So, i thougth using the
> apache source code, but i can't identify where is the main (listen)
> routine...
> Where is the function who waits for a connection???
>
> Any hint?


Yeah. Don't twiddle with apache. Get a packet-monitoring tool like
tcpdump or ethereal, and monitor it that way.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

rrivers

2004-03-06, 11:35 am

JoeAley2003 wrote:
> Hi all...
>
> I need to listen to http and https requests. So, i thougth using the
> apache source code, but i can't identify where is the main (listen)
> routine...
> Where is the function who waits for a connection???
>
> Any hint?
>
> Thank you all!

if you would like to see http request in real time (as it happens)
then use xrootconsole and have it print the accesslog to the console.
if you need to see the packet information then use ethereal...

ChiralSoftware

2004-03-11, 1:39 am

quote:
Originally posted by JoeAley2003
Hi all...

I need to listen to http and https requests. So, i thougth using the
apache source code, but i can't identify where is the main (listen)
routine...
Where is the function who waits for a connection???

Any hint?

Thank you all!



Take a look at:
http://www.math.uwaterloo.ca/~oadra...46G/a2/caa.html

That will tell you more than you ever wanted to know. The main loop is in http_main.c. Whatever it is that you are trying to do, using the Apache source code is probably the wrong way to do it, except in the very unique case of if you are trying to serve web pages. Trust me on this. You are better off learning Java and doing it from scratch than trying to twidle around with Apache.

------------
http://chiralsoftware.net/hosting-customer.html
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com