Contents
- Overview
- Installation & Uninstallation
- Local and remote management using IIS 7
- Context and processing order
- Apache compatibility
- Modules
- core functions
- mod_antibot
- mod_asis
- mod_auth_basic
- mod_auth_digest
- mod_authn_anon
- mod_authn_dbd
- mod_authn_default
- mod_authn_file
- mod_authz_default
- mod_authz_groupfile
- mod_authz_host
- mod_authz_user
- mod_cache
- mod_dbd
- mod_deflate
- mod_developer
- mod_dir
- mod_disk_cache
- mod_env
- mod_evasive
- mod_expires
- mod_filter
- mod_gzip
- mod_headers
- mod_hotlink
- mod_linkfreeze
- mod_log_config
- mod_logio
- mod_mem_cache
- mod_mime
- mod_proxy
- mod_replace
- mod_rewrite
- mod_seo
- mod_setenvif
- mod_so
- mod_speling
- mod_usertrack
- mod_xsendfile
- Articles
- Release history
- Troubleshooting
- License agreement
mod_asis
Overview
mod_asis module is used to send files that contain their own HTTP headers.
The module provides send-as-is
handler that causes Ape
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 an ASP script call or any other handler.
Quick start
Associate *.asis files with the send-as-is
handler in httpd.conf file:
AddHandler send-as-is asis
After that the contents of any file with .asis
extension will be sent
by Ape to the client with almost no changes.
Here's an example of a file which content is sent as is so as to tell the client that the file has been redirected:
Status: 301 Moved Permanently
Location: http://xyz.abc.com/foo/bar.html
Content-type: text/html
<html>
<head>
<title>You will be redirected to another page</title>
</head>
<body>
<h1>The page you have requested has moved to <a href="http://www.abc.com/page.html">another location</a>.
</h1>
</body>
</html>