Introduction to the Apache Web Server - ApacheCon
Introduction to the Apache Web Server - ApacheCon
Introduction to the Apache Web Server - ApacheCon
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Section 9<br />
Content Negotiation<br />
http://httpd.apache.org/docs/mod/mod negotiation.html<br />
http://httpd.apache.org/docs/content-negotiation.html<br />
Content negotiation is a server-side means of choosing for <strong>the</strong> user <strong>the</strong> document that best suits <strong>the</strong>ir<br />
preferences, as configured in <strong>the</strong>ir browser settings<br />
This is accomplished by a combination of client-side settings and server-side configuration.<br />
Content Negotiation does not translate documents. Try not <strong>to</strong> laugh when a student asks you this. It may<br />
seem absurd, but at least one student will ask how it manages <strong>to</strong> translate <strong>the</strong> documents in<strong>to</strong> different<br />
languages, and how many languages it knows, or variations on that <strong>the</strong>me.<br />
9.1 Client configuration<br />
9.1.1 Accept* headers<br />
Sent by <strong>the</strong> client <strong>to</strong> say what content types, and languages, <strong>the</strong>y wish <strong>to</strong> receive. See content-negotiation.html<br />
(full URL above) for more complete discussion.<br />
Edit -> Preferences -> Naviga<strong>to</strong>r -> Languages for language configuration options.<br />
At this point, you should show <strong>the</strong> students <strong>the</strong> output of printenv, or ano<strong>the</strong>r of <strong>the</strong> standard CGI programs<br />
that displays environment variables, and discuss <strong>the</strong> Accept* headers at length, making sure that <strong>the</strong>y<br />
understand what each means. You should configure your browser <strong>to</strong> request several languages in order <strong>to</strong><br />
make <strong>the</strong>se headers more interesting.<br />
9.1.2 Quality fac<strong>to</strong>rs<br />
Associated with each content type, <strong>the</strong>se fur<strong>the</strong>r specify what document types (language, content type,<br />
character set) are preferred over o<strong>the</strong>rs.<br />
53