DevHeads.net

Doubts in apache-2.4.37

Hi Team,

I have following doubt, please help me to understand

1) I am using worker MPM and according to architecture, each child process
creates one worker listener thread which has mutex and listens on the port.
If I am using two ports 80 and 443 then whether each child creates two
listener thread to listen on each port(80 and 443) or it will create only
one listener thread.

2) When mod_cgi forks the another process and sends the response back to
client then the communication between http process and forked process
happens through pipe or socket.

3) When we proxy https request to backend server like tomcat then whether
message transfers takes place in stream manner or it sends the whole
message to backend server after decrypt the message.

Please let me know if I am not clear.

Thanks
Hemant

Comments

Re: Doubts in apache-2.4.37

By Yehuda Katz at 01/14/2019 - 12:07

1. Don't know, should be easy to test.

2. Pipe.

3. I think this depends on which actual proxy module you are using. (There
are parameters for controlling the buffer size and when to flush)

On Mon, Jan 14, 2019 at 9:51 AM Hemant Chaudhary <

Re: Doubts in apache-2.4.37

By Hemant Chaudhary at 01/15/2019 - 06:47

Hi,,
3) I am using mod_proxy and mod_proxy_http to proxy request to backend
server.
With http we have stream flow of message.

Thanks
Hemant

RE: Doubts in apache-2.4.37

By Muggeridge, Matt at 01/15/2019 - 14:20

Your Q3 has two concepts mixed together. You’re asking if it is sent as a stream or as an unencrypted message.

I don’t understand what you’re really asking about it being a ‘stream’ or what is behind your question. You may have to expand on that part of your question if it’s important.

Regarding encryption, that depends on how your ProxyPass directive is written. If the target URL uses the ‘https’ scheme, then it will be encrypted.

Matt.

Hi,,
3) I am using mod_proxy and mod_proxy_http to proxy request to backend server.
With http we have stream flow of message.

Thanks
Hemant

On Mon, Jan 14, 2019 at 10:37 PM Yehuda Katz < ... at ymkatz dot net<mailto: ... at ymkatz dot net>> wrote:
1. Don't know, should be easy to test.

2. Pipe.

3. I think this depends on which actual proxy module you are using. (There are parameters for controlling the buffer size and when to flush)

On Mon, Jan 14, 2019 at 9:51 AM Hemant Chaudhary <hemantdude. ... at gmail dot com<mailto:hemantdude. ... at gmail dot com>> wrote:
Hi Team,

I have following doubt, please help me to understand

1) I am using worker MPM and according to architecture, each child process creates one worker listener thread which has mutex and listens on the port. If I am using two ports 80 and 443 then whether each child creates two listener thread to listen on each port(80 and 443) or it will create only one listener thread.

2) When mod_cgi forks the another process and sends the response back to client then the communication between http process and forked process happens through pipe or socket.

3) When we proxy https request to backend server like tomcat then whether message transfers takes place in stream manner or it sends the whole message to backend server after decrypt the message.

Please let me know if I am not clear.

Thanks
Hemant