Modasis

mod_asis is used to specify, in fine detail, all the information to be included in a response. This completely bypasses any headers Apache might have otherwise added to the response. All files with an .asis extension are sent straight to the client without any changes.

As a short example of the use of mod_asis, assume you've moved content from one location to another on your site. Now you must inform people who try to access this resource that it has moved, as well as automatically redirect them to the new location. To provide this information and redirection, you can add the following code to a file with a .asis extension:

Status: 301 No more old stuff! Location: http://gnulix.org/newstuff/ Content-type: text/html

<TITLE>We've moved...</TITLE> </HEAD> <BODY>

<P>We've moved the old stuff and now you'll find it at:</P> <A HREF="http://gnulix.org/newstuff/">New stuff</A>!. </BODY> </HTML>

Was this article helpful?

0 0

Post a comment