Basic Apache Server MCQ

1.
Which of the following commands will you use to compile and install the Apache Server on Unix or Unix-like systems?

Answer

Correct Answer: ./configure
make
make install

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

2.

Which of the following commands will you use to stop an Apache service via command line on a Windows NT based machine?

Answer

Correct Answer: httpd.exe –k stop
httpd.exe –k shutdown

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

3.

Which of the following directives can we not use in the <Files> and the <FilesMatch> sections?

Answer

Correct Answer: The Options directive
The AllowOverride directive

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

4.

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?

Answer

Correct Answer: Include conf/*.conf

Note: This Question is unanswered, help us to find answer for this one

5.

In which of the following sections can we use the AllowOverride directive?

Answer

Correct Answer: <Directory> section

Note: This Question is unanswered, help us to find answer for this one

6.

Which of the following configurations will prevent the proxy server from being used to access the google.com website?

Answer

Correct Answer: <Proxy http://google.com/*> Order allow, deny Deny from all </Proxy>

Note: This Question is unanswered, help us to find answer for this one

7.

Which of the following is true regarding the 'apachectl –k restart' command?

Answer

Correct Answer: It will kill all the children processes immediately but not the parent process and then restart new children processes.

Note: This Question is unanswered, help us to find answer for this one

8.

What is the default https port number?

Answer

Correct Answer: 443

Note: This Question is unanswered, help us to find answer for this one

9.

Which of the following commands will you use to check whether any Apache rpm package is installed on your RedHat Linux system or not?

Answer

Correct Answer: rpm –q apache

Note: This Question is unanswered, help us to find answer for this one

10.

State whether true or false:
<Location> sections are processed after <Directory> sections and .htaccess files are read after <Files> sections.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

11.

Which of the following directives sets the authorization realm for a directory for HTTP authentication?

Answer

Correct Answer: AuthName

Note: This Question is unanswered, help us to find answer for this one

12.

Which of the following directives allows the configuration of a trailing footer line under server generated documents like FTP directory listing etc.?



Answer

Correct Answer: ServerSignature

Note: This Question is unanswered, help us to find answer for this one

13.

If no port number is specified in the ServerName directive, which port number will the server use?

Answer

Correct Answer: It will use a port from the incoming request.

Note: This Question is unanswered, help us to find answer for this one

14.

Which command is used to check the version of the Apache server installed (using an rpm package) on a RedHat Linux system?

Answer

Correct Answer: httpd -v

Note: This Question is unanswered, help us to find answer for this one

15.

What is the default filename in the AccessFileName directive in the Apache config file?

Answer

Correct Answer: .htaccess

Note: This Question is unanswered, help us to find answer for this one

16.

Which of the following is the default option for the LogLevel directive in the Apache config file?

Answer

Correct Answer: None of the above

Note: This Question is unanswered, help us to find answer for this one

17.

Which user can use port numbers less than 1024 in unix/linux if they want to use other than the default port number 80?

Answer

Correct Answer: root

Note: This Question is unanswered, help us to find answer for this one

18.

Which of the following is the correct method to set a DocumentRoot directive for '/usr/web' folder in the Apache?


Answer

Correct Answer: DocumentRoot /usr/web

Note: This Question is unanswered, help us to find answer for this one

19.

Which of the following directives sets the contact address that the server includes in any error messages it returns to the client?

Answer

Correct Answer: ServerAdmin

Note: This Question is unanswered, help us to find answer for this one

20.

How will you enable the ServerTokens directive only on one of the Virtual Hosts present on your Apache server?


Answer

Correct Answer: ServerTokens directive cannot be enabled only on one of the Virtual Hosts.

Note: This Question is unanswered, help us to find answer for this one

21.

What does the depth of 1 mean in the SSLVerifyDepth directive?


Answer

Correct Answer: 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.

Note: This Question is unanswered, help us to find answer for this one

22.

Which of the following commands will you use to remove the Apache -2.0.4-i386.rpm package from a RedHat Linux system?

Answer

Correct Answer: rpm –e apache-2.0.4-i386.rpm

Note: This Question is unanswered, help us to find answer for this one

23.

In a Windows operating system, which of the following commands will you use to shutdown the Apache gracefully?

Answer

Correct Answer: httpd.exe –k shutdown

Note: This Question is unanswered, help us to find answer for this one

24.

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?

Answer

Correct Answer:

Require valid-user

Order allow,deny

Allow from 172.16

Satisfy Any 


Note: This Question is unanswered, help us to find answer for this one

25.

How will you uninstall the 'myapache' service (the name that you gave to the Apache service earlier) on a Windows NT based machine?

Answer

Correct Answer: httpd.exe –k uninstall –n "myapache"

Note: This Question is unanswered, help us to find answer for this one

26.
What is the default Apache access for <Directory />?

Answer

Correct Answer: Allow from All

Note: This Question is unanswered, help us to find answer for this one

27.

Which of the following options are available for the LogLevel directive in the Apache?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

28.

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

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

29.

In a Windows operating system, if the Apache is installed from a precompiled executable, what will be the extension of the module files?

Answer

Correct Answer: .so

Note: This Question is unanswered, help us to find answer for this one

30.

Which of the following commands will you use to run the Apache as a service on a Windows NT based machine?

Answer

Correct Answer: httpd.exe –k install

Note: This Question is unanswered, help us to find answer for this one

31.

Which of the following commands will you use to start the Apache server (installed through an rpm package) on a RedHat Linux system?


Answer

Correct Answer: service httpd start

Note: This Question is unanswered, help us to find answer for this one

32.

Which of the following is true regarding the DSO list in the config file in Apache v1.3.X?

Answer

Correct Answer: The DSO list must be in correct order

Note: This Question is unanswered, help us to find answer for this one

33.

What is the default value of backlog in the ListenBackLog directive?

Answer

Correct Answer: 511

Note: This Question is unanswered, help us to find answer for this one

34.

Which of the following directives tells the Apache to parse files for the SSI directives if they have the execute bit set?

Answer

Correct Answer: XBitHack on

Note: This Question is unanswered, help us to find answer for this one

35.

Which of the following log format strings denotes 'Remote Host'?

Answer

Correct Answer: %h

Note: This Question is unanswered, help us to find answer for this one

36.

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.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

37.

Which of the following commands will you use to run the Apache in the debug mode?


Answer

Correct Answer: httpd -X

Note: This Question is unanswered, help us to find answer for this one

38.

Which of the following commands will you use on a RedHat Linux system to install the Apache-2.0.4-i386.rpm package?

Answer

Correct Answer: rpm –ivh apache-2.0.4-i386.rpm

Note: This Question is unanswered, help us to find answer for this one

39.

On which of the following platforms can Apache be installed?


Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

40.

Which of the following directives sets how deeply mod_ssl should verify before deciding that the clients do not have a valid certificate?

Answer

Correct Answer: SSLVerifyDepth

Note: This Question is unanswered, help us to find answer for this one

41.

 Which of the following directives can we use for redirecting the log information to be received by a program on its standard input?

Answer

Correct Answer: CustomLog

Note: This Question is unanswered, help us to find answer for this one

42.

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?

Answer

Correct Answer: mod_userdir

Note: This Question is unanswered, help us to find answer for this one

43.

 Which of the following directives is used to set the maximum length of the queue of pending connections?

Answer

Correct Answer: ListenBackLog

Note: This Question is unanswered, help us to find answer for this one

44.

Which utility comes with the Apache for creating and updating user authentication files?

Answer

Correct Answer: htpasswd

Note: This Question is unanswered, help us to find answer for this one

45.

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?

Answer

Correct Answer: service httpd reload

Note: This Question is unanswered, help us to find answer for this one

46.

Which of the following commands will you use to check the configuration files before starting the Apache server?

Answer

Correct Answer: apachectl -t
apachectl configtest

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

47.

Which protocols are available in the SSLProtocol directive?

Answer

Correct Answer: SSLv2
SSLv3
TLSv1

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

48.

Which are the two types of user authentication options available in the AuthType directive?


Answer

Correct Answer: Basic
Digest

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

49.

Which of the following levels are available in the SSLVerifyClient directive?


Answer

Correct Answer: none
optional
require
optional_no_ca

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

search
Apache Server Subjects