Self Test


The following questions will help you measure your understanding of the material presented in this chapter. As no multiple choice questions appear on the Red Hat exams, no multiple choice questions appear in this book. These questions exclusively test your understanding of the chapter. It is okay if you have another way of performing a task. Getting results, not memorizing trivia, is what counts on the Red Hat exams. There may be more than one answer to many of these questions.

The Apache Web Server

1. 

What is the Apache directive that specifies the base directory for configuration and log files?

__________________________________________________________

image from book

2. 

Once you've modified httpd.conf, what command should you use to reread this file?

________________________________________________________

image from book

3. 

What directive specifies the TCP/IP port associated with Apache?

________________________________________________________

the listen directive specifies the tcp port associated with apache.

Answers

1. 

The ServerRoot directive sets the default directory for the Apache server. Any files and directories not otherwise configured-or configured as a relative directory-are set relative to ServerRoot.

2. 

There are two basic ways to make Apache reread the configuration file. You can restart the service with a command such as apachectl restart, or you can keep Apache running and make it reread the file with service httpd reload.

3. 

The Listen directive specifies the TCP port associated with Apache.

Apache Access Configuration

4. 

What command creates the /etc/httpd/passwords file and configures a password for user elizabeth? ____________________________________________________________

image from book

5. 

If you see the following directives limiting access within the stanza for a virtual host, what computers are allowed access?

 Order Allow,Deny Allow from 192.168.0.0/24 

______________________________________

image from book

6. 

What standard ports do you need to open in a firewall to allow access to a regular and secure Web site? ______________________________________

image from book

Answers

4. 

The command that creates the /etc/httpd/passwords file and configures a password for user elizabeth is htpasswd -c /etc/httpd/passwords elizabeth. If /etc/httpd/passwords already exists, all that's required is htpasswd elizabeth.

5. 

As described in the chapter, the Order Allow,Deny directive denies access to all systems by default, except those explicitly allowed access. So access is limited to computers on the 192.168.0.0/24 network.

6. 

The standard ports you need to open in a firewall to allow access to a regular and secure Web sites are 80 and 443.

Virtual Hosts

7. 

What file does RHEL provide to help you configure a virtual host as a secure server? ________________________________________________________

image from book

8. 

If you're creating an IP address-based virtual host, how many IP addresses would you need for three virtual servers? ___________________

image from book

9. 

If you want to check your configuration of virtual hosts, what switch can you use with the httpd command? _______________________________________

image from book

Answers

7. 

The file associated with secure servers for virtual hosts is ssl.conf in the /etc/httpd/conf.d/ directory.

8. 

Three IP addresses are needed for three virtual servers. IP address-based virtual hosts each require their own IP addresses. If you want to configure multiple virtual hosts, you need name-based virtual hosts, typically starting with the NameVirtualHost *:80 directive.

9. 

To check your configuration of virtual hosts, you can use two switches with the httpd command: httpd -S checks the configuration file, including virtual host settings. Alternatively, httpd -D DUMP_VHOSTS focuses on the virtual host configuration.

The Squid Web Proxy Cache

10. 

Which directive in squid.conf is used to point to the network IP address served by Squid? __________________________________________________________________

image from book

11. 

What command configures the Squid cache directories and is required before you start this service for the first time? ____________________________________________

image from book

12. 

What port and protocol are the defaults for Squid communication? _________________

image from book

Answers

10. 

The acl and http_access allow directives in squid.conf can be used to specify the network to be served by Squid. For example, the following directives support access from the 192.168.0.0/24 network:

 acl local_net src 192.168.0.0/24 http_access allow local_net 

11. 

The squid -z command sets up the directories for the Squid cache, which is required before you start the Squid service for the first time.

12. 

The default port for Squid communication is 3128; the default protocol is ICP (InterCache Protocol).



RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302)
Linux Patch Management: Keeping Linux Systems Up To Date
ISBN: 0132366754
EAN: 2147483647
Year: 2004
Pages: 227
Authors: Michael Jang

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net