Apache mod_html_meta
version 0.2.1
Yoshida Masato
yoshidam@yoshidam.net
- Introduction
This is the module to append the HTTP responce header
from the content of META-element with a http-equiv
attribute of each HTML file.
For example,
HTML :
HTTP : Content-Type: text/html; charset=EUC-JP
HTML :
HTTP : HTTP/1.1 301 Moved Permanently
Location: http://foo.bar.baz/
- Download
http://www.yoshidam.net/mod_xml_charset-0.2.1.tar.gz
- Installation
This module requires Apache 1.3.x (confirmed to work
with 1.3.6), Apache 2.0.x or Apache 2.2.x.
Compile with Apache
./configure --add-module=/path/to/mod_html_meta.c
or build a dynamic shared object
/usr/sbin/apxs -c mod_html_meta.c
sudo /usr/sbin/apxs -i -a mod_html_meta.la
- Configuration
In httpd.conf
HTMLMeta on
AddHTMLMeta html htm
or each .htaccess (you must AllowOverride FileInfo in httpd.conf)
HTMLMeta on
AddHTMLMeta html htm
- Command
HTMLMeta
Syntax: HTMLMeta {on,off}
Context: directory, .htaccess
Enable or disable HTMLMeta feature. It override
the parent directory setting.
AddHTMLMeta
Syntax: AddHTMLMeta extension extension...
Context: directory, .htaccess
Assign file extensions to be parsed. It inherit the
parent directory setting and append new extensions.
- Note
All HTTP headers are not be overriden by this module.
Non-ASCII encoding (UTF-16, EBCDIC) files can not be
parsed.
- Copying
This extension module is copyrighted free software by
Yoshida Masato.
You can redistribute it and/or modify it under the same
term as Apache.
- Author
Yoshida Masato
- History
Jun 24, 2002 apache 2.0
May 16, 1999 version 0.1.1