.
: http://www.arcetri.astro.it/manual/ja/mod/mod_mime.html
: Mon Jan 21 19:44:30 2013 : Fri Feb 28 05:49:40 2014 : IBM-866 |
Apache HTTP ²î î¦Á 2.2
: | µ (Á) (MIME ¨ÁîÁ) |
---|---|
µîµ: | Base |
¦î: | mime_module |
îµ: | mod_mime.c |
¦î
Á
MIME ¨ÁîÁ
´Րî´
ÁÁ§î§Á
ÁÁ§î§Á
mod_negotiation
AddCharset
AddEncoding
AddHandler
AddLanguage
AddType
Á¨ (: charset)content-encoding,
content-language, MIME (content-type)
TypesConfig
MIME
mod_mime
ÁÁ
Á
AddHandler
AddOutputFilter
AddInputFilter
Áɑ¦îµȴ
MultiviewsMatch
mod_negotiation
Multiviews
mod_mime
core
²îÁ
(, <Location>
, <Directory>
, <Files>
) ɵ
ForceType
, SetHandler
, SetInputFilter
, SetOutputFilter
mod_mime
Áۦ
Last-Modified
ۇÁ§§
îí
(ÁÁ¨ÁîÁ)
ۇÁÁ
߃ 'touch' Á
(ۇۇ)
Ր welcome.html.fr
ÁÁ text/html
Áµwelcome.fr.html
Ր
ÁÁÁîÁ
ρ.gif
MIME
image/gif
.html
MIME text/html
welcome.gif.html
MIME text/html
îµՐÁîÁ
ÁÁÁîÁ
welcome.html.en.de
Content-Language: en, de
Content-Type:
text/html
Ր MIME
Áֵ
µÁ
¦îɑ
.imap
(mod_imagemap
) imap-file
.html
MIME text/html
world.imap.html
imap-file
Á text/html
MIME
imap-file
Á mod_imagemap
î¦ɑ
ɵ MIME Áî
ϧ gzip
pgp
ϧ
ASCII (µ)
UUencoding
HTTP/1.1 RFC 14.11
Content-Encoding Áî Á ϧContent-Type î ۦϧ Content-Encoding Áí
Microsoft Word Á²¡
pkzip .doc
Microsoft Word
.zip
pkzip ÁîÁ
Resume.doc.zip
pkzip Word Á
Á´ÁîÁֵ
Apache îµő Content-Encoding
Content-encoding: pkzip
ÁîÁ Áۦ¨ Á ۦ HTTP
¨ÁîÁmime
ÁÁ§î§Á (mod_negotiation
)
Ր¨ÁîÁMIME
ۃÁÁ
AddCharset
,
AddEncoding
, AddLanguage
,
AddType
( MimeMagicFile
µ
) AddHandler
,
AddInputFilter
,
AddOutputFilter
MultiviewsMatch
Apache ۦ
Content-Language
¨
Conten-Type
Content-Language: en, fr
Content-Type: text/plain; charset=ISO-8859-1
charset
¨
: | ¨ |
---|---|
: | AddCharset charset extension
[extension] ... |
Áµ: | ²î, îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
AddCharset
charset charset
extension
MIME charset
îÁÁ
extension Áۦ
AddLanguage ja .ja
AddCharset EUC-JP .euc
AddCharset ISO-2022-JP .jis
AddCharset SHIFT_JIS .sjis
Á xxxx.ja.jis
charset
ISO-2022-JP
Áɑ
(xxxx.jis.ja
)AddCharset
Á
Á charset Á
²îÁ charset
ߡՐÁÁÁÁ§î§Á
Ր extension̡
: | ÁîÁ |
---|---|
: | AddEncoding MIME-enc extension
[extension] ... |
Áµ: | ²î, îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
AddEncoding
ÁîÁ
MIME-enc extension
Á MIME ÁîÁ
ÁÁ
extension Áۦ
AddEncoding x-gzip .gz
AddEncoding x-compress .Z
.gz
x-gzip
ÁîÁÁî .Z
x-compress
Áî
Á x-zip
x-compress
gzip
compress
Apache
ÁÁÁîÁ
x-
Apache
ÁîÁÁ
(x-foo
foo
)
ÁîÁ
x-gzip
x-compress
deflate
ÁîÁx-
Ր extension ̡
: | Á |
---|---|
: | AddHandler handler-name extension
[extension] ... |
Áµ: | ²î, îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
extension handler-name ɑ
ÁÁ
extension
Áۦ
".cgi
" CGI
µɑ
AddHandler cgi-script .cgi
httpd.conf
".cgi
" CGI ɑ
Ր extension ̡
: | Áµ |
---|---|
: | AddInputFilter filter[;filter...]
extension [extension] ... |
Áµ: | ²î, îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
: | 2.0.26 í |
AddInputFilter
extension Áµ POST ²î
SetInputFilter
Áî¦
extension Áۦ
Րî¨Á ۦ extension ֵՐ̡
: | |
---|---|
: | AddLanguage MIME-lang extension
[extension] ... |
Áµ: | ²î, îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
AddLanguage
content language MIME-lang
extension MIME
ÁÁ
extension Áۦ
AddEncoding x-compress .Z
AddLanguage en .en
AddLanguage fr .fr
xxxx.en.Z
Á compress
ˑÁɑ (xxxx.Z.en
)content language Á
´
AddLanguage
²îÁߡՐ
ÁÁÁÁ§î§Á
Րɒ
AddLanguage en .en
AddLanguage en-gb .en
AddLanguage en-us .en
.en
Á
en-us
ɑ
Ր extension ̡
: | ²î |
---|---|
: | AddOutputFilter filter[;filter...]
extension [extension] ... |
Áµ: | ²î, îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
: | 2.0.26 í |
AddOutputFilter
extension ²îÁ
SetOutputFilter
AddOutputFilterByType
ÁÁ
extension Áۦ
.shtml
SSI
ǡ mod_deflate
AddOutputFilter INCLUDES;DEFLATE shtml
Րî¨Á ۦfilter extension Ր̡
: | ÁÁ |
---|---|
: | AddType MIME-type extension
[extension] ... |
Áµ: | ²î, îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
AddType
ÁÁ
MIME-type extension
Á MIME
ÁÁ
extension Áۦ
MIME (TypesConfig
)
Á
AddType image/gif .gif
TypesConfig
ۇAddType
Ր extension ̡
: | µî |
---|---|
: | DefaultLanguage MIME-lang |
Áµ: | ²î, îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
DefaultLanguage
Apache
µî (µ
<Directory>
ے)
(AddLanguage
.fr
.de
)
MIME-lang
ÁÁÁ
ֵ
DefaultLanguage
DefaultLanguage
ʵ
AddLanguage
DefaultLanguage en
: | path_info ÁîÁɑ
mod_mime |
---|---|
: | ModMimeUsePathInfo On|Off |
: | ModMimeUsePathInfo Off |
Áµ: | |
µîµ: | Base |
¦î: | mod_mime |
: | Apache 2.0.41 |
ModMimeUsePathInfo
mod_mime
µ path_info
URL
ÁîÁ
Off
path_info
ÁîÁ
î§µ
ModMimeUsePathInfo On
/bar
(foo.shtml )
ModMimeUsePathInfo
On
/bar/foo.shtml
µ١
mod_mime
µ
/bar/foo.shtml
ɑ
AddOutputFileter INCLUDES .shtml
INCLUDES
µ
ModMimeUsePathInfo
INCLUDES
: | MultiViews Á |
---|---|
: | MultiviewsMatch Any|NegotiatedOnly|Filters|Handlers
[Handlers|Filters] |
: | MultiviewsMatch NegotiatedOnly |
Áµ: | ²î, îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
: | 2.0.26 í |
MultiviewsMatch
mod_negotiation
Multiviews 3 Ր
Multiviews ( index.html
)
µ§î§Áîµ
(index.html.en
, index.html.fr
index.html.gz
)
NegotiatedOnly
§Áîµ
ÁÁ§î§Á mod_mime
( ¨ÁÁÁîÁ)
Áֵֵ
MultiviewsMatch
Handlers
,
Filters
ֵ§Á¨
500 index.html.cgi
1000
index.html.pl
.cgi
.asis
î´
.asis
asis-handler
Á§Á
mod_mime
Any
Apache 1.3 .old
.bak
µہ
í
Á Multiviews
MultiviewsMatch Handlers Filters
: | ¨ |
---|---|
: | RemoveCharset extension [extension]
... |
Áµ: | îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
: | 2.0.24 í |
RemoveCharset
¨
² .htaccess
²î
Ƀ:
extension ̡
RemoveCharset .html .shtml
: | ÁÁÁîÁ |
---|---|
: | RemoveEncoding extension [extension]
... |
Áµ: | îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
RemoveEncoding
ÁîÁ
² .htaccess
²îɃ
AddEncoding x-gzip .gz
AddType text/plain .asc
<Files *.gz.asc>
RemoveEncoding .gz
</Files>
foo.gz
gzip
Áîfoo.gz.asc
ÁîîÁµ
RemoveEncoding
AddEncoding
ֵϬ
ʵí
extension ̡
: | Á |
---|---|
: | RemoveHandler extension [extension]
... |
Áµ: | îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
RemoveHandler
Á
² .htaccess
²î
Ƀ:
AddHandler server-parsed .html
RemoveHandler .html
/foo/bar
.html
SSI (mod_include
¦î)
ɑʵ
extension ̡
: | |
---|---|
: | RemoveInputFilter extension [extension]
... |
Áµ: | îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
: | 2.0.26 í |
RemoveInputFilter
²î
Ƀ ²
.htaccess
extension Ր̡
: | |
---|---|
: | RemoveLanguage extension [extension]
... |
Áµ: | îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
: | 2.0.24 í |
RemoveLanguage
²î
Ƀ ²
.htaccess
extension Ր̡
: | ǡ |
---|---|
: | RemoveOutputFilter extension [extension]
... |
Áµ: | îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
: | 2.0.26 í |
RemoveOutputFilter
ǡ
²î
Ƀ ²
.htaccess
extension ̡
RemoveOutputFilter shtml
: | ÁÁ |
---|---|
: | RemoveType extension [extension]
... |
Áµ: | îµ, , .htaccess |
ۦ: | FileInfo |
µîµ: | Base |
¦î: | mod_mime |
RemoveType
MIME
² .htaccess
²îɃ
:
RemoveType .cgi
/foo/
.cgi
ɵɑ DefaultType
ɑ
RemoveType
AddType
ֵϬ
ʵí
extension ̡
: | mime.types |
---|---|
: | TypesConfig file-path |
: | TypesConfig conf/mime.types |
Áµ: | ²î |
µîµ: | Base |
¦î: | mod_mime |
TypesConfig
MIME
filename
ServerRoot
ۦµ
ÁÁ
Á
IANA ٨̒ÁÁ
Apache mime.types
Ϭ http://www.iana.org/assignments/media-types/index.html
AddType
ۦֵ httpd.conf
mime.types
²îî
ۇ
AddType
Ր
MIME-type [extension] ...
̡§ (`#')
mime.types
٨̒
Apache HTTP Server Project µ
category/x-subtype
µ͇
¨í
2 ͇