Olete.in
Articles
Mock Tests
🧪 Apache/Tomcat MCQ Quiz Hub
Apache Web server Multiple Choice Questions
Choose a topic to test your knowledge and improve your Apache/Tomcat skills
1. What does the following set of Directives do? AddType application/x-httpd-php3 .php3.
Adds all files with the extension .php3 to the MIME Type application/x-httpd-php3.
Creates a new user-defined type that can be used subsequently in variable declarations.
Makes it easier to load new definitions into the configuration files.
Installed the php3 software onto the system.
2. What does the HostNameLookups double do?
Makes Apache perform 2 forward name lookups from different DNS servers to confirm the hostname prior to logging.
Performs a hostname lookup in the double-file prior to logging the result.
Performs both a reverse name lookup and then a forward name lookup on that result, prior to logging the result.
Sets the hostname to double for all hostnames logged.
3. What does the -v option do during startup?
Starts Apache in verbose mode with maximum logging.
Has no impact on Apache and has been discontinued as of Apache 1.2.6.
Displays the version of Apache and the build date and exits.
Disables virtual hosting for the specified virtual hostname(s…
4. What does the mod_dir Module provide?
It provides a basic file directory searching capability for Apache to resolve spelling mismatches.
It provides trailing slash “/” redirects and serving directory index files.
It allows remote synchronization for tools such as Microsoft Frontpage.
It has been discontinued as of Apache 1.2 and is no longer used.
5. What action(s. must be done to enable cookies within Apache?
Only installing the mon_usertrack.
Installing mod_cookies.
Installing mon_usertrack and setting the Directive cookie-tracking on.
Only setting the Directive cookie-tracking on.
6. What option in the IndexOptions Directive is only available after Apache 1.3.10?
FancyIndexing
IconHeight
NameWidth
FoldersFirst
7. What Module is CacheSize used with?
mod_proxy
mod_ssl
mod_usertrack
mod_alias
8. What does the SendBufferSize Directive do?
Sets the internal IPC buffer settings to the specified amount.
Sets the number of 4k buffers in Windows for optimal disk buffering.
Sets the TCP buffer size to the specified amount.
Allows the default SMB TCP delay to be overridden.
9. What is the function of the mod_imap Module?
Handles IMAP e-mail protocols for Apache.
Performs image map handling.
Allows for shared inter-module memory protocols.
There is no mod_imap Module which is available for Apache.
10. By default, where are the HTML files located for the default site on a Windows Apache server?
C: Inetsrvwwwroot
C: Program FilesApache Software Foundation
C: Program FilesApache Software FoundationApache2.2www
C: Program FilesApache Software FoundationApache2.2htdocs
11. Where is the default location for the main Apache configuration file (httpd.conf? on Windows?
C: Program FilesApache Software FoundationApache2.2conf
C:Program FilesApache Software FoundationApache2.2conftextra
C:OpenSSLconf
C: Program FilesApache Software FoundationApache2.2configuration
12. What is the default extension for Apache configuration files?
.con
.conf
.txt
.configuration
13. Which of the following is not a valid protocol for PCI compliance?
SSLv2
AES-SHA 56 bit
SSLv1
All of the above
14. What is the recommended directive to load the Intermediate certificate(s.?
SSLCertificateFile
SSLCACertificateFile
SSLCertificateChainFile
SSLCACertificatePath
15. If a certificate is issued off of the DigiCert High Assurance CA-3 certificate, how many Intermediate certificate files (.crts. will need to be specified in the Apache configuration file?
One
Two
Three
None
16. Where are the Apache log files located by default?
C: Program FilesApache Software FoundationApache2.2log
C:Program FilesApache Software FoundationApache2.2htdocs
C: Program FilesApache Software FoundationApache2.2conf
C: Program FilesApache Software FoundationApache2.2logs
17. What’s the location of log files for Apache server?
/deck/log/httpd
/deck/log/httpd
/var/log/httpd
/location/log/httpd
18. What’s the Comamnd to check the version of Apache server?
rpm -qa |grep | version http|
rpm –qa |grep httpd
rpm -qa |check http | version
rpm -qa |grep http | version
19. Does Apache act as a Proxy server?
can’t be determined
Yes, by default
yes, using the mod_proxy module.
no
20. Apache server works on which ports?
http – port 80 only
Both http – port 80 and https – port 443
https – port 443 only
None of These
21. How do you change the default web root?
Change the DocumentRoot in httpd.server file.
change the DocumentRoot n httpd.admin file.
change the DocumentRoot in httpd.root file.
change the DocumentRoot in httpd.conf file.
22. What’s the command to stop Apache?
apachectl -k exit /etc/init.d/apache2 exit
apachectl -k run /etcfiit.d/apache2 stop
apachectl -k interact /etc/init.d/apache2 stop
apachectl -k stop /etc/init.d/apache2 stop
23. If you specify both deny from all and allow from all, what will be the default action of Apache?
Can’t be determined
Only allow will be performed.
Deny always takes precedence over allow
Allow always takes precedence over deny.
24. What’s the command to Restart Apache?
apachectl -k restart /etc/init.d/apache2 system
apachectl –k restart /etc/init.d/apache2 restart
apachectl -k run /etc/init.d/apache2 restart system
apachectl -k perform /etc/init.d/apache2 restart
25. To cause the Web server to work around the NFS locking limitations, include a line such as the following in your server configuration files:
None of these
Lockfile /var/run/apache-lock
SetFile/var/run/apache-access
CreateFile /var/run/apache-startup
Submit