| < Day Day Up > |
|
The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully, as there may be more than one correct answer. Don't focus exclusively on these questions. There are no longer any multiple choice questions on the Red Hat exams. These questions exclusively test your understanding of the chapter. While the topics in this chapter are 'prerequisites,' 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.
1. | Which of the following Apache directives give you the base directory for configuration and log files?
|
|
2. | How would you configure a virtual host as a secure server?
|
|
3. | Once you've modified httpd.conf, which of the following commands should you use to reread this file?
|
|
4. | Which of the following commands creates a password file and configures a password for user elizabeth?
|
|
Answers
1. | þ A is correct. 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. | þ C is correct. The Red Hat Apache configuration supports the creation of secure servers in /etc/httpd/conf.d/ssl.conf. You can configure virtual hosts for your secure Web site in the same way as you can in /etc/httpd/conf/httpd.conf. |
3. | þ D is correct. The apachectl command is the preferred method to control the Apache service. |
4. | þ B is correct. The htpasswd command sets up passwords. The -c switch is required to create a new file to store passwords. |
5. | Which of the following commands in the squid.conf file is used to point to the network IP address served by Squid?
|
|
6. | Which of the following commands should you use before starting Squid for the first time? This command configures the Squid cache directories.
|
|
Answers
5. | þ C is correct. The acl command in squid.conf can be used to specify the network to be served by Squid.ý A, B, and D are incorrect. The visible_hostname command is used to identify the local computer. The http_access command can be used to actually configure Squid for the network of your choice. The squid -z command sets up the directories for the Squid cache. |
6. | þ D. See answer 5 for the reasons. |
7. | Which of the following commands should you disable if you don't want users logging into their accounts through the vsFTP server?
|
|
8. | Which of the following commands should you enable if you want to keep regular users from getting to the top-level root directory (/) on your computer?
|
|
Answers
7. | þ A is correct. The local_enable command allows local users to log in remotely to their home directories. Disabling this command disables this functionality. |
8. | þ D is correct. See answer 7 for the reasons. |
9. | Which of the following directives would you disable in /etc/mail/sendmail.mc to allow your sendmail server to serve more than just the local computer?
|
|
10. | Which of the following commands should you add to /etc/mail/access if you want to set up service to the 10.11.12.0 network?
|
|
Answers
9. | þ D is correct. The DAEMON_OPTIONS directive in the default sendmail.mc file prevents access to anything but the local computer. |
10. | þ B is correct. This is the required format in the /etc/mail/access configuration file. |
| < Day Day Up > |
|