You should understand how the servertokens directive works


Apache Cookbook

1. In preparation for this assignment do the following:

a. Boot Fedora, open a terminal session, and login as root.

b. Install telnet by typing yum install -y telnet at the command prompt and then pressing Enter. The yum installer will install telnet and then return you to the command prompt.

c. Navigate to /var/www/html and create a file called index.html. Insert the following html code into the file and then save it:



<br />Under Construction<br />


Under Construction

2. At the command prompt, type the following command and press Enter:

telnet localhost 80

A telnet session will start.

3. At the command prompt in the telnet session, type the following text and press Enter after each line:

HEAD / HTTP/1.1

Host: localhost

You must follow this text with a blank line, so press the Enter key again.

A response from the server appears on the screen. Record every line of that response.

7. Edit httpd.confand modify the ServerTokens directive to look like this:

ServerTokens Minor

8. Save the file, exit the editor, and restart Apache.

9. Repeat the telnet session and compare the output you receive with the output you recorded in Step 3. What has changed?

10. You should understand how the ServerTokens directive works by now. You can try two other settings, Major and Prod, and see that they reveal increasingly less detail.

11. Edithttpd.conf. Locate the ServerSignature line or add it if necessary. If the line is commented out, remove the comment character. When you finish, the link should look like this:

ServerSignature On

12. Save the file, exit the editor, and restart Apache.

13. Rerun the telnet session from steps 2 and 3, and compare the output with what you recorded previously in Step 3. What has changed?

14. Type the following lines and press Enter after each one.

telnet localhost 80
GET /nonsense HTTP/1.1
Host: localhost

You must follow this text with a blank line, so press the Enter key again.

Record the error message you receive in the space provided.

15. Why do you think you received an error message from Apache when you executed this series of commands? You may use the Internet or any other credible source to answer this question.

16. What was the function of Telnet in this lab?

Solution Preview :

Prepared by a verified Expert
Application Programming: You should understand how the servertokens directive works
Reference No:- TGS01164954

Now Priced at $90 (50% Discount)

Recommended (92%)

Rated (4.4/5)

A

Anonymous user

4/20/2016 4:40:31 AM

This assignment that make to all questions for Apache Cookbook 1. In preparation for this assignment do the subsequent: a. Boot Fedora, open a terminal session, and login as root. b. Install telnet via typing yum install -y telnet at the command prompt and then pressing Enter. The yum installer will install telnet and then return you to the command prompt. c. Find the way to /var/www/html and create a file said index.html. Insert the subsequent html code into the file and then save it: Under Construction 2. At the command prompt, type the subsequent command and press Enter: telnet local host 80 A telnet session will start.