1. Edit the Apache config file (or use a .htaccess file) and set the default expiration for cached documents to 1 hour after the document is first accessed. What directives and values did you use for this?
- 2. Restart Apache and retrieve the â€˜index.htmlâ€™ file at http://localhost/index.html
- 3. View the response headers â€˜Expiresâ€™ and â€˜Cache-Controlâ€™. What values do these headers have? Explain what these values mean.
- 4. Edit the Apache config file (or use a .htacess file) and set the expiration time for text files to 30 minutes after the document was last modified. Set the expiration time for image files to 1 hour after the file was last accessed. What directives and values did you use for this?
- 5. Restart Apache and view the response headers after requesting both an image and a text file.What values to you see in â€˜Expiresâ€™ and â€˜Cache-Controlâ€™ headers?
- 6. Modify the text file and request it again. Now what values do you see in these headers? Is this what you expect? Why?
1. Configure Apache on your local host as a forward proxy server. What directives and values did you use?
- 2. Configure a browser on a different host to use that Apache proxy server and verify that it works. Make a request to â€˜http://apache.orgâ€™. Check the log files on your proxy server. Do you see any log entries?
- 3. Configure your proxy server to block requests to â€˜apache.orgâ€™ and try again to access it using your browser. Can you access it? What entries do you have in your proxy server log file?
Is this part of your assignment? ORDER NOW
Philanthropicprofessor.org is a marketplace platform to connect students with tutors for their academic needs. Our network of tutors will help make study error-free with accurate grammar, context, guidelines, and everything in between. Enjoy top-quality academic guidance by the veteran specialists.