Exercises
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
Auto audio on: the next questions will be read aloud when you click Continue.
A <VirtualHost> container groups configuration directives for a site served through a specified IP address and port.
Apache compares the request's Host header with configured ServerName and ServerAlias values to select a name-based virtual host.
ServerAlias lists additional names, such as www.example.com, that should be handled by the same virtual host.
DocumentRoot specifies the local filesystem directory containing the files published as the root of the website.
The Listen directive defines the addresses and ports on which Apache accepts incoming connections. It does not create a redirect.
<Directory> applies rules to filesystem locations. <Location> applies rules to paths in the requested URL namespace.
AllowOverride None tells Apache not to process configuration overrides from .htaccess files in the relevant directory scope.
RewriteEngine On activates runtime rewriting for mod_rewrite in the relevant configuration context.
A graceful restart reloads the configuration while existing workers finish active requests, reducing disruption to clients.
apachectl configtest, also available as apachectl -t, checks configuration syntax and reports detected errors before a reload.
The error log records startup failures, module-loading problems, configuration errors, and request-processing faults.
Require all denied rejects authorization for every client, so Apache normally responds with HTTP status 403 Forbidden.
The event MPM manages idle keep-alive connections more efficiently, allowing worker threads to serve other active requests.
A TLS virtual host needs SSL processing enabled and access to its certificate and matching private key so it can authenticate itself and establish encrypted sessions.
For an unmatched hostname, Apache uses the first configured virtual host associated with the selected IP address and port as the default.
Video Courses
recommended
recommended
recommended
recommended
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks