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.
Script POST /cgi-bin/post.cgi<br />
14.1.2 Standard handlers<br />
The following are <strong>the</strong> standard handlers - that is, those handlers that are defined by modules that come<br />
standard with <strong>Apache</strong>.<br />
default-handler<br />
Defined by <strong>the</strong> <strong>Apache</strong> core (ra<strong>the</strong>r than by an extension module) this is <strong>the</strong> handler that deals with requests<br />
for files. This is <strong>the</strong> default manner of dealing with a URL request if <strong>the</strong>re is nothing else special about it.<br />
This is <strong>the</strong> handler that was in use in <strong>the</strong> URL mapping section yesterday.<br />
send-as-is<br />
Defined by mod asis, <strong>the</strong> send-as-is handler sends a file without prefacing it with any headers. It is<br />
assumed that <strong>the</strong> file itself will contain <strong>the</strong> headers as part of <strong>the</strong> content of <strong>the</strong> file.<br />
Status: 301 Now where did I leave that URL<br />
Location: http://xyz.abc.com/foo/bar.html<br />
Content-type: text/html<br />
<br />
<br />
Lame excuses’R’us<br />
<br />
<br />
Fred’s exceptionally wonderful page has moved <strong>to</strong><br />
Joe’s site.<br />
<br />
<br />
<br />
The send-as-is handler is enabled using <strong>the</strong> AddHandler directive:<br />
AddHandler send-as-is .asis<br />
It is cus<strong>to</strong>mary <strong>to</strong> name <strong>the</strong>se pages something.asis, however, in <strong>the</strong> case of <strong>the</strong> above example, when<br />
83