<-
Apache > HTTP Server > Documentation > Version 2.4

Hġ ȯ溯]

݋b _ _ Ɯ”. ٿ ~@ ݋ O[.

Hġ ݋Lb ȯ溯](environment variable)b ] r v ] . r ȝ~[ α׳ \ E@ Ѵ. , ȯ溯]b CGI zrxh @ ܺ α׷ _[b ]Z ȴ. ݋b ȯ溯] LO ȝ~[b ل Ҏ^@ Ѵ.

]@ ȯ溯]O θ, ü݋ [b ȯ溯] ٸ. ]b Hġ ο vǽO ȝ~ȴ. ȯ溯]b CGI zrxh Server Side Include zrxh єV ü ȯ溯] ȴ. ݋L [b ü ȯ@ ]r[O ʹٔR ü ݋ ȯ@ ]rؾ Ѵ.

Support Apache!

O

top

ȯ溯] r[

⺻ ȯ漳r

Hġ݋ ȯ溯] r[b ⺻ Ҏ^@ SetEnv C ȝ~[b ͓ƴ. PassEnv C ȝ~[ ݋L C ݋ ȯ溯] ]n .

] Ǻ r

Ϟ[, mod_setenvif [b Cb ] ] Ư¡ ȯ溯] rѴ. 齁, Ưr v (User-Agent) ][ų Ưr Referer (^ Ʋ ʾҴ) c b 쿡 ] r ] . U mod_rewrite b RewriteRule [E=...] ӛ@ ȝ~[ Ϟ[ ȯ溯] r ]n .

Ϟ e

ڷ mod_unique_idb ] 쿡n "" ]߿ ȮǞ Ϟ(ġʻ@) @ڷ UNIQUE_ID ȯ溯] rѴ.

F CGI ]

CGI zrxh SSI ݋b Hġ r݋ r[ų ݋ ȯ溯] ܿ ߰ CGI Ծ Ԟr ] r ˷־b ȯ溯]@ ޾b.

top

ȯ溯] ȝ~[

CGI zrxh

ȯ溯] ֵ ~n [b CGI zrxh r ȯ[b ͓ƴ. տ݋ ߵ Hġ r݋ r ]ܿ ] F r ] CGI zrxh ѽ. ڼ ~@ CGI 丮@ O[.

SSI

mod_include INCLUDES Ͱ Q[b ݋LH (SSI) ݋b echo Ҹ ȝ~[ ȯ溯] ] O, ȯ溯] ȝ~[ ] Ư¡ ҷ Ϻθ ] . Hġb SSI ݋ ݋ F CGI ȯ溯] Ѵ. ڼ ~@ SSI 丮@ O[.

allow from env= deny from env= C ȝ~[ ȯ溯] @ ݋L @ ] . SetEnvIf ȝ~[R Ŭƾh Ư¡ ϞӰ ݋L @ ] . 齁, Ưr v (User-Agent) @ ź ] .

Ǻ α

LogFormat %e ӛ@ ȝ~[ ȯ溯] α׿ U ] . , CustomLog C Ǻ e@ ȝ~[R ȯ溯] Ȳ ]@ α θ r ] . SetEnvIf ȝ~[ ]@ α ϞӰ r ] . 齁, Hϸ gif b ]@ α׸[ ʰų, ܺ h̝ b Ŭƾh ]@ α ] .

Ǻ [ c

Header Cb Ŭƾh [@ mV ȯ溯] Ϟ HTTP c ` r ] . 齁, Ŭƾh ] Ưr c b 쿡 [ c m ] .

ܺ [

mod_ext_filter ExtFilterDefine C r ܺ ͸ disableenv= enableenv= ӛ@ ȝ~[ ȯ溯] ڷ ] .

URL ۼ(Rewriting)

RewriteCond TestString %{ENV:...} e@ ȝ~[R mod_rewrite ۼ ȯ溯] ٸ ൿѴ. mod_rewrite݋ տ ENV: ٓʽO ٸ[b ]b ȯ溯] ƅ@ Ǹ[. ׵@ ٸ ⿡݋ @ ] ^b mod_rewrite ўr ].

top

Ư ȯ溯]

Ŭƾh ۸[ Hġb Ư Ŭƾh _ ൿ@ ]rѴ. BrowserMatch݋ ȯ溯] rǸ[ Ʒ ذѴ. ׵\ SetEnv PassEnvΙn ɸ[.

downgrade-1.0

] L@ ȝ~[n HTTP/1.0 ]ڷ QѴ.

force-gzip

DEFLATE ͸ ȝ~V ȯ溯]b v accept-encoding r@ C[O оd .

force-no-vary

[@ Ŭƾh [ c݋ Vary ʵ带 . Ŭƾhb ʵ带 ؼ[ oѴ. ]b Ʒ ذѴ. , ]b force-response-1.0@ rѴ.

force-response-1.0

HTTP/1.0 ]@ [b Ŭƾh HTTP/1.0 [@ KѴ. E AOL UC ݋ 齁Ę. HTTP/1.0 Ŭƾhb HTTP/1.1 [@ ޙڔR ۸[ ʙڹǷ, ذ[ ȝ~Ѵ.

gzip-only-text/html

@ "1"ƔR text/html Ƈ content-type mod_deflate DEFLATE ͸ ȝ~[ ʾb. (gzip ] ” "identity" Ƈ ΃ȵ) rڷ оd H 쿡n mod_negotiation@ ] OѴ.

no-gzip

ӛ@ r[R mod_deflate DEFLATE ͸ ȝ~[ ʽO, mod_negotiation@ ΃ȵ ڿ@ ʾb.

nokeepalive

KeepAlive CѴ.

prefer-language

]b mod_negotiation ൿ @ ģ. ] (en, ja, x-klingon ) ±׸ OٔR, mod_negotiationb 𽁷 @ CnѴ. ׷ ^ٔR ^ r@ CѴ.

redirect-carefully

݋L U Ŭƾh ٓƷӛ@ . ٓƷӛ@ Q[b b Ŭƾh@ ȝ~Ѵ. E Microsoft WebFolders h DAV ޽Y带 丮 ڿ ٓƷӛ@ Q[b ݋ 齁Ę.

suppress-error-charset

2.0.40 L

Hġ Ŭƾh ] [ڷ ٓƷӛ@ mV Ŭƾh ڵڷ ٓƷӛ@ o[b(Ȥ@ ʾb) 쿡 [ [信 ȝ~ڿ R 얂並 `Ѵ. Hġb @ Hġ ȝ~[b ڻ\J ISO-8859-1 FCѴ.

׵\ ٓƷӛ ٸ ڻ\J@ ȝ~ ƻ v L@ ” ٓƷӛ ڻ\J@ ȝ~[O Ѵ. 齁, ׸z ƻ[ ] .

ȯ溯]b Hġ ٓƷӛ ڻ\J@ r[ʙnU [, Ʒ v ڻ\J@ ùٷ ȝ~[ 늴.

top

߽o ۸[b Ŭƾh@ ൿ [

Ŭƾh ƹ ˷ ذ[ apache2.conf ٞ ~@ `[ ٶ.

#
# ٞ C@ ^ HTTP [@ Ѵ.
# ù偓 Cb Netscape 2.x Ƹ  v
# keepalive ȝ~[ ʾb. Ƶ v   .
# 偓 Cb HTTP/1.1  ߽oǾO 301Ƴ 302
# (ٓƷӛ) [信 ȝ~ keepalive  [
# o[b Microsoft Internet Explorer 4.0b2  ͓ƴ.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

#
# ٞ Cb ⺻ HTTP/1.1 [@ ظ[ o[
# HTTP/1.0 Ծ@ b v HTTP/1.1 [@  ʾb.
#
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

α׿ ƹ ]@ α׸[ ʱ

b ƹ ]@ α׿ U[ ʾb. Ưr 丮 Ȥ@ Ưr xzh݋ ]@ α׸[ ʙnU ]r ] .

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

"ƹ n" Ҏ

b ݋L ȝ~ڰ ݋L b ƹ `[ o[nU [b Ҏ^@ Ѵ. r@ [b ʙڸ, ѵ 쿡 Ѵ. 츮b ƹ /web/images 丮 ȿ ٽO rѴ.

SetEnvIf Referer "^http://www.example.com/" local_referal
# Referer r  ʾb v A~Ѵ
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" O[.

:  en  |  fr  |  ja  |  ko  |  tr 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.
С͸