.
: http://itpm.msu.su/manual/ja/env.html
: Sat Feb 5 01:50:17 2005 : Mon Oct 1 19:57:51 2012 : Windows-1251 : |
Apache HTTP ???? ?????? 2.0
Apache HTTP ??????-?????????????? ????-?+???'?????????????????????? ?????'?????????????????????'???????-????? ??????? CGI ??????????????????R???????? '??????????????????????'????????' ????????
????????-???????????????????????? ????????????????-??+????????'??? ???????????? Apache ??????-?+??????????????? ???????CGI ? SSI ??????????????-??+????? ??????????????????-??????????????'?? ??????????????????????????-???????????? ??????????????????????????????-?? ???'???+??????'???
???????? | ???????????? |
---|---|
Apache ???????-????????????
???-????? SetEnv
???????????'???????????
PassEnv
???????????????Apache ??Ɯ????????
?-??????????-?????
???-??????????mod_setenvif
???????????????????'?????????????????
-???????-???????????-??????????????
(User-Agent) ?????????? Referer [???????]
(: ????? referrer ??????HTTP ?'?? Referer
?????????) ????'??'?????-?????????????-?????
mod_rewrite ? RewriteRule
?????????????????-????? [E=...]
???????'?????????
??????????????-?????
mod_unique_id ??????????????
??????????????????????????????????????-?
UNIQUE_ID
???????
Apache ?????????????-??????'???? ?-???????CGI ???????? SSI ?????? CGI ?'????????? ?????????????'????-???????????
suexec.c
???????????????? | ???????????? |
---|---|
?-??????Μ????CGI ???????????????????? ?????????????CGI ????????????-?? Apache ??????????????????????????????????????? ??? CGI ????????? ?'????????????
mod_include ? INCLUDES
???????????
server-parsed (SSI) ??-????????echo
?'?????-??????????
?????????????ʃ?????????-??+????????????
?-???????'???????-????????
SSI ????????? ?'????????????
allow from env=
??????????? deny from env=
???????????'???????????????'????-????????????-?????
SetEnvIf
???????????????'?????????????????-??????
???????????'??????????????-???????????
???????????????????????'????????? (User-Agent)
?'???????'????????????-?????
LogFormat
????????????????? %e
?'??????????-???????'?????-??????????-??????????
CustomLog
????????????ʃ???'?????????
?-?????????????????-?????'???'?????????-?????
SetEnvIf
???????????????'???????
?????????????-?????'???????????????????????????
gif
?????????????????????????-???????
?????????????????'???????????+????-??????
?????????????
Header
????????????-????????????????????+??
HTTP ?????+??'???'?????????-?????
?????????????????????????'?????????
?????????????????+??????????????????
??-?????
ExtFilterDefine
???????????'??
mod_ext_filter
??????????????
disableenv=
? enableenv=
???????'?????-??????-Ń???-?????
RewriteCond
?????????????'???
%{ENV:...}
??'?????????mod_rewrite
???-?????????-???????ʃ???????????-?????
mod_rewrite ?'????? ENV:
???????????????
????-????????????????????????
??????????????'??'??-??? mod_rewrite ????????
??-????????????????????????R???????-?
Apache ?Ɯ??????-????????????????-???+???????????
??????????-?????????????????????
BrowserMatch
???????????'????????????? SetEnv
??????????? PassEnv
???????????'?????????-?????
????'????????????????? HTTP/1.0 ???????????????????HTTP/1.0 ???Ɯ???????
+?????????????????? Vary
????????????-?????
?????????????????????????????????????????
(????????????
??????'??????????)???????????????????
?????????-????????????????force-response-1.0
????????????????
?????????????HTTP/1.0 ?????????????????????????? ?? HTTP/1.0 ?+????????????????????? ??? AOL ????-????????????????HTTP/1.0 ?????????????? HTTP/1.1 ?+????????Ɯ????????????'?????'??? ??????'??????????????????????????????-????-?????
???? 1 ???????????? text/html
???????????????????mod_deflate
?? DEFLATE
???????????????
?'????????mod_deflate
?
DEFLATE
??????????????????
???????????????KeepAlive
?'?????????????
mod_negotiation
?Ɯ?+????????
(en
, ja
, x-klingon
??????)
??????????????????? variant ??R??????????
?????? variant ?????????
??????????????
Ń???????
?????????????????????????R???????????? ???????????? ????????????????????????????? ????????ʃ?'????????'???????????????? ???????????????????????? DAV ???????????????????????????????????Μ??? ?????????????????????????
Apache 2.0.40 ????
?????????????????????+?????????????R?????? ???????????????????'Ɯ???????? (???????) ??????????-???????????? ????????-?????????-???????'????ISO-8859-1 ?????+???????
??'?????????????'?'???'????????? ?????????????????????? ????????????'?'???????? ?????????'?'???'????????????????? ???Ξ??????????????????????????????????
????-???????????????????????-??????? ?-???????'???'???????????????????????? ?????????'?'??????'??????-?????
???????????????????????????????? httpd.conf ??????????????????
# # The following directives modify normal HTTP response behavior. # The first directive disables keepalive for Netscape 2.x and browsers that # spoof it. There are known problems with these browser implementations. # The second directive is for Microsoft Internet Explorer 4.0b2 # which has a broken HTTP/1.1 implementation and does not properly # support keepalive when it is used on 301 or 302 (redirect) responses. # BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 # # The following directive disables HTTP/1.1 responses to browsers which # are in violation of the HTTP/1.0 spec by not being able to grok a # basic 1.1 response. # BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0
???????????????????????'??????????????????? ????????????????????????????????????? ??????'????????????????????????????+???-?????
SetEnvIf Request_URI \.gif image-request SetEnvIf Request_URI \.jpg image-request SetEnvIf Request_URI \.png image-request CustomLog logs/access_log common env=!image-request
???????????????????????????????????
inline ????'????????R?????
???????????????????'??????????????-?????
??????????????? /web/images
?????????????????????????
SetEnvIf Referer "^http://www.example.com/" local_referal # Allow browsers that do not send Referer info SetEnvIf Referer "^$" local_referal <Directory /web/images> Order Deny,Allow Deny from all Allow from env=local_referal </Directory>
???????????????? ApacheToday ???????????Keeping Your Images from Adorning Other Sites ??'????????????