I wanted to find out what happens when Nginx is configured as a reverse proxy in front of Apache. Here is the scenario Nginx is set to handle .jpg files Apache is set handle .php files
There is a file.php which when requested also calls .jpg files.
What happens when the user requests file.php from this server, is request passed to Apache and then Apache picks up the connection and is communicating with the user directly or its sending processed info via Nginx and all communication goes via Nginx? Since .jpg is mentioned in .php file, will Apache serve .php and then Nginx pick up the .jpg serving?
If Nginx will serve .php processed by Apache then is this file saved/cached somewhere while Nginx is serving it?
Nginx is known to be prone to stuff like slowloris, will it ignore such a requests or will pass them to Apache when .php is requested?
There are some basic questions which are rarely answered anywhere.