Exercises

Apache HTTP Server Configuration and Virtual Hosts Quiz

Assess your practical understanding of Apache HTTP Server configuration and virtual hosting. This quiz covers name-based virtual hosts, document roots, ports, access control, .htaccess behavior, URL rewriting, logs, TLS, configuration testing, restart methods, and Multi-Processing Modules. Questions range from foundational concepts to troubleshooting scenarios commonly encountered when hosting multiple websites.

Answer the questions below and check the explanation for each answer.

0/15 answered

  1. 1

    What is the primary purpose of a <VirtualHost> container in Apache?

  2. 2

    In name-based virtual hosting, which part of an HTTP request normally determines which website Apache serves?

    Question 2
  3. 3

    Which directive assigns additional hostnames to an Apache virtual host beyond its primary ServerName?

  4. 4

    A virtual host contains the directive DocumentRoot "/srv/sites/store". From which location will Apache normally retrieve that site's files?

    Question 4
  5. 5

    What does the Apache directive Listen 8080 instruct the server to do?

    Question 5
  6. 6

    How do Apache's <Directory> and <Location> containers differ?

    Question 6
  7. 7

    What is the effect of setting AllowOverride None for a directory?

  8. 8

    Which directive must normally be enabled before RewriteRule directives are processed in a configuration context?

    Question 8
  9. 9

    Why is a graceful Apache restart often preferred after a configuration change?

  10. 10

    Which command is commonly used to check Apache configuration syntax before reloading the server?

  11. 11

    Which log should an administrator examine first when Apache fails to load a module or reports a startup configuration problem?

  12. 12

    A directory is configured with Require all denied. What should a client normally receive when requesting a file from that directory?

    Question 12
  13. 13

    What is a key advantage of Apache's event Multi-Processing Module over the prefork MPM for many idle keep-alive connections?

  14. 14

    Which configuration is essential for a TLS-enabled Apache virtual host to present its identity to clients?

    Question 14
  15. 15

    Several name-based virtual hosts share the same IP address and port. What does Apache normally do if the request's Host value matches none of their ServerName or ServerAlias entries?

    Question 15

Video Courses

Courses related to this topic

See all video courses

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate