Recall & Review
beginner
What is the main architectural difference between Nginx and Apache?
Nginx uses an event-driven, asynchronous architecture, while Apache uses a process-driven, synchronous model.
Click to reveal answer
beginner
Which web server is generally better at handling many simultaneous connections?
Nginx is better at handling many simultaneous connections efficiently due to its event-driven design.
Click to reveal answer
intermediate
How does Apache handle dynamic content compared to Nginx?
Apache can process dynamic content internally using modules like mod_php, while Nginx usually passes dynamic requests to external processors like PHP-FPM.
Click to reveal answer
beginner
Which server uses configuration files with .htaccess support?
Apache supports .htaccess files for directory-level configuration, Nginx does not support .htaccess files.
Click to reveal answer
intermediate
What is a common use case where Apache might be preferred over Nginx?
Apache might be preferred when you need extensive .htaccess support or complex dynamic content handling within the server.
Click to reveal answer
Which web server uses an event-driven architecture?
✗ Incorrect
Nginx uses an event-driven, asynchronous architecture to handle connections efficiently.
Which server supports .htaccess files for directory-level configuration?
✗ Incorrect
Apache supports .htaccess files, allowing configuration changes per directory.
For serving static files efficiently, which server is generally preferred?
✗ Incorrect
Nginx is optimized for serving static files quickly using its event-driven model.
How does Nginx handle dynamic content?
✗ Incorrect
Nginx passes dynamic requests to external processors such as PHP-FPM.
Which server is better for handling a large number of simultaneous connections?
✗ Incorrect
Nginx's event-driven architecture allows it to handle many connections efficiently.
Explain the key architectural differences between Nginx and Apache and how they affect performance.
Think about how each server manages multiple users at the same time.
You got /3 concepts.
Describe scenarios where you might choose Apache over Nginx and why.
Consider configuration flexibility and internal processing.
You got /3 concepts.