GCS Amplitude
GCS Amplitude

Apache Module mod_asis

This module provides the handler send-as-is

which causes Apache HTTP Server to send the document without adding most of the usual HTTP headers.

This can be used to send any kind of data from the server, including redirects and other special HTTP responses, without requiring a cgi-script or an nph script.

For historical reasons, this module will also process any file with the mime type httpd/send-as-is

In the server configuration file, associate files with the send-as-is

AddHandler send-as-is asis

extension will then be sent by Apache httpd to the client with almost no changes. In particular, HTTP headers are derived from the file itself according to

rules, so an asis file must include valid headers, and may also use the CGI mod_cgiStatus:

header to determine the HTTP response code. The Content-Length:

header will automatically be inserted or, if included, corrected by httpd.

Here's an example of a file whose contents are sent as is so as to tell the client that a file has redirected.

Status: 301 Now where did I leave that URL

Location: http://xyz.example.com/foo/bar.html

Lame excuses'R'us

Fred's exceptionally wonderful page has moved to

The server always adds a Date:

header to the data returned to the client, so these should not be included in the file. The server does not add a Last-Modified

header; it probably should.

Modules | Directives | FAQ | Glossary | Sitemap

Apache HTTP Server Version 2.4

Modules

Modules | Directives | FAQ | Glossary | Sitemap

Apache Module mod_asis

Available Languages: en | fr | ja | ko

en

Available Languages: en | fr | ja | ko

Apache License, Version 2.0

Copyright 2014 The Apache Software Foundation.Licensed under the Apache License, Version 2.0.