The following Apache Server MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of Apache Server. We encourage you to answer these 40+ multiple-choice questions to assess your proficiency.
Please continue by scrolling down.
Which of the following levels are available in the SSLVerifyClient directive?
A. none
B. optional
C. require
D. optional_no_ca
Which are the two types of user authentication options available in the AuthType directive?
A. Basic
B. MD5
C. Digest
D. Encrypt
Which protocols are available in the SSLProtocol directive?
A. SSLv2
B. SSLv3
C. TLSv1
D. None of the above
Which of the following commands will you use to check the configuration files before starting the Apache server?
A. apachectl -t
B. apachectl configtest
C. apachectl -testconfig
D. None of the above
Which of the following commands will you use to apply the changes made in the httpd.conf file without restarting the Apache server (installed through an rpm package) on a RedHat Linux system?
A. service apache apply
B. service httpd apply
C. service httpd reload
D. service apache reload
Which utility comes with the Apache for creating and updating user authentication files?
A. htaccess
B. htpasswd
C. passwd
D. None of the above
Which of the following directives is used to set the maximum length of the queue of pending connections?
A. MaxClients
B. ListenBackLog
C. MaxConnections
D. None of the above
Which of the following modules allows the creation of web space for every user by using the public_html directory created in every user's home directory?
A. mod_user
B. mod_public
C. mod_userdir
D. mod_vhost
Which of the following directives can we use for redirecting the log information to be received by a program on its standard input?
A. BufferedLog
B. CustomLog
C. LogFormat
D. CookieLog
Which of the following directives sets how deeply mod_ssl should verify before deciding that the clients do not have a valid certificate?
A. SSLRequireSSL
B. SSLVerifyClient
C. SSLClientDepth
D. SSLVerifyDepth
On which of the following platforms can Apache be installed?
A. RedHat Enterprise Linux
B. Solaris
C. Windows
D. Mac OS X
E. SCO
F. HPUX
G. All of the above
Which of the following commands will you use on a RedHat Linux system to install the Apache-2.0.4-i386.rpm package?
A. rpm –q apache-2.0.4-i386.rpm
B. rpm –e apache-2.0.4-i386.rpm
C. rpm –ivh apache-2.0.4-i386.rpm
D. None of the above
Which of the following commands will you use to run the Apache in the debug mode?
A. httpd -d
B. httpd -D
C. httpd -X
D. httpd debug
State whether true or false:
The BufferedLogs directive causes the mod_log_config to store several
log entries in memory and write them together to the disk, rather than
writing them after each request.
A. True
B. False
Which of the following log format strings denotes 'Remote Host'?
A. %R
B. %U
C. %H
D. %h
Which of the following directives tells the Apache to parse files for the SSI directives if they have the execute bit set?
A. Options +Includes
B. XBitHack on
C. SSI on
D. ExecuteBit on
What is the default value of backlog in the ListenBackLog directive?
A. 255
B. 256
C. 511
D. 512
Which of the following is true regarding the DSO list in the config file in Apache v1.3.X?
A. The DSO list must be in correct order
B. The DSO list can be in any order
C. The DSO list is not supported in Apache v1.3.X
D. None of the above
Which of the following commands will you use to start the Apache server (installed through an rpm package) on a RedHat Linux system?
A. start apache service
B. start httpd service
C. service apache start
D. service httpd start
Which of the following commands will you use to run the Apache as a service on a Windows NT based machine?
A. httpd.exe –n install
B. httpd.exe –k install
C. httpd.exe –s install
D. httpd.exe –i install
In a Windows operating system, if the Apache is installed from a precompiled executable, what will be the extension of the module files?
A. .dll
B. .so
C. .mod
D.
None of the above
State whether true or false:
IPv6 addresses must be surrounded in square brackets in the Listen directive e.g.
Listen [2001:db8::a00:20ff:fea7:ccea]:80
A. True
B. False
Which of the following options are available for the LogLevel directive in the Apache?
A. alert
B. debug
C. info
D. error
E. All of the above
What is the default Apache access for <Directory />?
A. Allow from All
B. Deny from All
C. None of the above
How will you uninstall the 'myapache' service (the name that you gave to the Apache service earlier) on a Windows NT based machine?
A. httpd.exe –u uninstall –k "myapache"
B. httpd.exe –k uninstall –u "myapache"
C. httpd.exe –n uninstall –k "myapache"
D. httpd.exe –k uninstall –n "myapache"
Which of the following will you use if you
want users on your network (172.16.0.0) to have unrestricted access to a
portion of your website but users outside your network to provide a
password to access the same portion of your website?
A.
Require valid-user
Order allow,deny
Allow from 172.16
Satisfy All
B.
Require valid-user
Order allow,deny
Allow from 172.16
Satisfy Any
C.
Require valid-user
Order allow,deny
Allow from All
Satisfy Any
D.
Require valid-user
Order allow,deny
Deny from All
Satisfy All
In a Windows operating system, which of the following commands will you use to shutdown the Apache gracefully?
A. httpd.exe –g shutdown
B. httpd.exe –k kill
C. httpd.exe –k shutdown
D. None of the above
Which of the following commands will you use to remove the Apache -2.0.4-i386.rpm package from a RedHat Linux system?
A. rpm –q apache-2.0.4-i386.rpm
B. rpm –e apache-2.0.4-i386.rpm
C. rpm –ivh apache-2.0.4-i386.rpm
D. None of the above
What does the depth of 1 mean in the SSLVerifyDepth directive?
A. Only self signed client certificates are accepted.
B. The client certificate can be signed by the client himself/herself or has to be signed by a CA who is personally known to the server.
C. The client certificate has to be signed by a CA who is personally known to the server.
D. None of the above
How will you enable the ServerTokens directive only on one of the Virtual Hosts present on your Apache server?
A. ServerTokens All
B. ServerTokens Full
C. ServerTokens Vhost
D. ServerTokens directive cannot be enabled only on one of the Virtual Hosts.
Which of the following directives sets the contact address that the server includes in any error messages it returns to the client?
A. ServerContact
B. ServerAddress
C. ServerHost
D. ServerAdmin
Which of the following is the correct method to set a DocumentRoot directive for '/usr/web' folder in the Apache?
A. DocumentRoot /usr/web/
B. DocumentRoot = /usr/web/
C. DocumentRoot "/usr/web/"
D. DocumentRoot /usr/web
Which user can use port numbers less than 1024 in unix/linux if they want to use other than the default port number 80?
A. root
B. apache
C. normal user
D. All of the above
Which of the following is the default option for the LogLevel directive in the Apache config file?
A. alert
B. debug
C. info
D. error
E. None of the above
What is the default filename in the AccessFileName directive in the Apache config file?
A. .acl
B. .htaccess
C. .htpasswd
D. All of the above
Which command is used to check the version of the Apache server installed (using an rpm package) on a RedHat Linux system?
A. apache -v
B. http -v
C. httpd -v
D. None of the above
If no port number is specified in the ServerName directive, which port number will the server use?
A. Port 80
B. Port 8080
C. It will use the Random port.
D. It will use a port from the incoming request.
A. ServerSignature
B. ServerTokens
C. ServerFooter
D. ServerDirectoryFooter
Which of the following directives sets the authorization realm for a directory for HTTP authentication?
A. AuthType
B. AuthName
C. AuthUserFile
D. AuthRealm
State whether true or false:
<Location> sections are processed after <Directory> sections
and .htaccess files are read after <Files> sections.
A. True
B. False
Which of the following commands will you use to check whether any Apache rpm package is installed on your RedHat Linux system or not?
A. rpm –q apache
B. rpm –e apache
C. rpm –ivh apache
D. None of the above
What is the default https port number?
A. 8080
B. 8000
C. 443
D. 563
Which of the following is true regarding the 'apachectl –k restart' command?
A. It will kill all the parent and the children processes immediately and then restart them.
B. It will kill all the children processes immediately but not the parent process and then restart new children processes.
C. It will wait for the children processes to exit after their current requests and then restart both the parent and the children processes.
D. It will read the config file again.
Which of the following configurations will prevent the proxy server from being used to access the google.com website?
A. <Proxy http://google.com/*> Order deny, allow Deny from all </Proxy>
B. Proxy http://google.com/*> Order allow, deny Allow from all </Proxy>
C. <Proxy http://google.com/*> Order allow, deny Deny from all </Proxy>
D. None of the above
In which of the following sections can we use the AllowOverride directive?
A. <Location> section
B. <Directory> section
C. <Files> section
D. <DirectoryMatch> section
E. Any of the above
Which of the following directives will you use to include only all .conf files present in the '/usr/local/apache2/conf' directory where '/usr/local/apache2' is your ServerRoot directory?
A. Include /usr/local/apache2/conf/*.*
B. Include /usr/local/apache2/conf/*.conf
C. Include /conf/*.conf
D. Include conf/*.conf
Which of the following directives can we not use in the <Files> and the <FilesMatch> sections?
A. The Options directive
B. The AllowOverride directive
C. Neither of the above
Which of the following commands will you use to stop an Apache service via command line on a Windows NT based machine?
A. httpd.exe –k stop
B. httpd.exe –k exit
C. httpd.exe –k shutdown
D. httpd.exe –s halt
A. ./configure
B. make
C. make install
D. None of the above