1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
|
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head>
<meta content="text/html; charset=EUC-KR" http-equiv="Content-Type" />
<!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>ġ ȯ溯 - Apache HTTP Server Version 2.4</title>
<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="./style/css/prettify.css" />
<script src="./style/scripts/prettify.min.js" type="text/javascript">
</script>
<link href="./images/favicon.ico" rel="shortcut icon" /></head>
<body id="manual-page"><div id="page-header">
<p class="menu"><a href="./mod/"></a> | <a href="./mod/directives.html">þ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html"></a> | <a href="./sitemap.html">Ʈ</a></p>
<p class="apache">Apache HTTP Server Version 2.4</p>
<img alt="" src="./images/feather.png" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="./">Version 2.4</a></div><div id="page-content"><div id="preamble"><h1>ġ ȯ溯</h1>
<div class="toplang">
<p><span> : </span><a href="./en/env.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="./fr/env.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="./ja/env.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="./ko/env.html" title="Korean"> ko </a> |
<a href="./tr/env.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</div>
<div class="outofdate"> ֽ ƴմϴ.
ֱٿ ϼ.</div>
<p>ġ <em>ȯ溯(environment variable)</em>
ִ. Ͽ α׳
۾ Ѵ. , ȯ溯 CGI ũƮ
ܺ α ϴ ȴ. ȯ溯
ٷ ϴ پ Ѵ.</p>
<p> <em>ȯ溯</em> θ, ü
ϴ ȯ溯 ٸ. ġ ο ǰ
ȴ. ȯ溯 CGI ũƮ Server Side Include
ũƮ Ѱ ü ȯ溯 ȴ.
ϴ ü ȯ ϰ ʹٸ ü
ȯ ؾ Ѵ.</p>
</div>
<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#setting">ȯ溯 ϱ</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#using">ȯ溯 ϱ</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#special">Ư ȯ溯</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#examples"></a></li>
</ul><h3></h3><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="setting" id="setting">ȯ溯 ϱ</a></h2>
<table class="related"><tr><th>õ </th><th>õ þ</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_env.html">mod_env</a></code></li><li><code class="module"><a href="./mod/mod_rewrite.html">mod_rewrite</a></code></li><li><code class="module"><a href="./mod/mod_setenvif.html">mod_setenvif</a></code></li><li><code class="module"><a href="./mod/mod_unique_id.html">mod_unique_id</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_setenvif.html#browsermatch">BrowserMatch</a></code></li><li><code class="directive"><a href="./mod/mod_setenvif.html#browsermatchnocase">BrowserMatchNoCase</a></code></li><li><code class="directive"><a href="./mod/mod_env.html#passenv">PassEnv</a></code></li><li><code class="directive"><a href="./mod/mod_rewrite.html#rewriterule">RewriteRule</a></code></li><li><code class="directive"><a href="./mod/mod_env.html#setenv">SetEnv</a></code></li><li><code class="directive"><a href="./mod/mod_setenvif.html#setenvif">SetEnvIf</a></code></li><li><code class="directive"><a href="./mod/mod_setenvif.html#setenvifnocase">SetEnvIfNoCase</a></code></li><li><code class="directive"><a href="./mod/mod_env.html#unsetenv">UnsetEnv</a></code></li></ul></td></tr></table>
<h3><a name="basic-manipulation" id="basic-manipulation">⺻ ȯ漳</a></h3>
<p>ġ ȯ溯 ϴ ⺻
<code class="directive"><a href="./mod/mod_env.html#setenv">SetEnv</a></code> þ ϴ ̴. <code class="directive"><a href="./mod/mod_env.html#passenv">PassEnv</a></code> þ Ͽ
ȯ溯 ִ.</p>
<h3><a name="conditional" id="conditional">û Ǻ </a></h3>
<p> ϰ, mod_setenvif ϴ þ û
û Ư¡ ȯ溯 Ѵ. , Ư
(User-Agent) ûϰų Ư Referer (
Ʋ ʾҴ) ִ 쿡
ִ. mod_rewrite ִ <code class="directive"><a href="./mod/mod_rewrite.html#rewriterule">RewriteRule</a></code>
<code>[E=...]</code> ɼ Ͽ ϰ ȯ溯
ִ.</p>
<h3><a name="unique-identifiers" id="unique-identifiers"> ĺ</a></h3>
<p> mod_unique_id û 쿡
"" û߿ Ȯ (ġ)
<code>UNIQUE_ID</code> ȯ溯 Ѵ.</p>
<h3><a name="standard-cgi" id="standard-cgi">ǥ CGI </a></h3>
<p>CGI ũƮ SSI ġ Ͽų
ȯ溯 ܿ ߰ <a href="http://cgi-spec.golux.com/">CGI Ծ</a>
û ˷ִ ȯ溯 ´.</p>
<h3><a name="caveats" id="caveats"> </a></h3>
<ul>
<li>ȯ漳 þ Ͽ ǥ CGI ϰų
.</li>
<li><a href="suexec.html">suexec</a> CGI ũƮ
ϴ , ϱ CGI ũƮ ȯ
<em></em> 鸸 ûҵȴ.
<em></em> Ͻ
<code>suexec.c</code> ǵȴ.</li>
<li> ȯ溯 ̸ , ,
ٹڸ ϴ . , ù° ڷ
ڸ ʴ . CGI ũƮ SSI
Ѿ ̿ ڴ ٷ üȴ.</li>
</ul>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="using" id="using">ȯ溯 ϱ</a></h2>
<table class="related"><tr><th>õ </th><th>õ þ</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_authz_host.html">mod_authz_host</a></code></li><li><code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="./mod/mod_ext_filter.html">mod_ext_filter</a></code></li><li><code class="module"><a href="./mod/mod_headers.html">mod_headers</a></code></li><li><code class="module"><a href="./mod/mod_include.html">mod_include</a></code></li><li><code class="module"><a href="./mod/mod_log_config.html">mod_log_config</a></code></li><li><code class="module"><a href="./mod/mod_rewrite.html">mod_rewrite</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_authz_host.html#allow">Allow</a></code></li><li><code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code></li><li><code class="directive"><a href="./mod/mod_authz_host.html#deny">Deny</a></code></li><li><code class="directive"><a href="./mod/mod_ext_filter.html#extfilterdefine">ExtFilterDefine</a></code></li><li><code class="directive"><a href="./mod/mod_headers.html#header">Header</a></code></li><li><code class="directive"><a href="./mod/mod_log_config.html#logformat">LogFormat</a></code></li><li><code class="directive"><a href="./mod/mod_rewrite.html#rewritecond">RewriteCond</a></code></li><li><code class="directive"><a href="./mod/mod_rewrite.html#rewriterule">RewriteRule</a></code></li></ul></td></tr></table>
<h3><a name="cgi-scripts" id="cgi-scripts">CGI ũƮ</a></h3>
<p>ȯ溯 ֵ 뵵 ϳ CGI ũƮ
ȯϴ ̴. տ ߵ ġ
ܿ û ǥ CGI ũƮ
Ѿ. ڼ <a href="howto/cgi.html">CGI
丮</a> ϶.</p>
<h3><a name="ssi-pages" id="ssi-pages">SSI </a></h3>
<p>mod_include <code>INCLUDES</code> Ͱ óϴ
Ľ (SSI) <code>echo</code> Ҹ Ͽ
ȯ溯 ְ, ȯ溯 Ͽ û
Ư¡ 帧 ҷ Ϻθ
ִ. ġ SSI ǥ CGI
ȯ溯 Ѵ. ڼ <a href="howto/ssi.html">SSI 丮</a> ϶.</p>
<h3><a name="access-control" id="access-control"></a></h3>
<p><code>allow from env=</code> <code>deny from env=</code>
þ Ͽ ȯ溯
ִ. <code class="directive"><a href="./mod/mod_setenvif.html#setenvif">SetEnvIf</a></code> ϸ
Ŭ̾Ʈ Ư¡ Ӱ
ִ. , Ư (User-Agent)
ź ִ.</p>
<h3><a name="logging" id="logging">Ǻ α</a></h3>
<p><code class="directive"><a href="./mod/mod_log_config.html#logformat">LogFormat</a></code>
<code>%e</code> ɼ Ͽ ȯ溯 α
ִ. , <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> þ
Ǻ ϸ ȯ溯 Ȳ û
α θ ִ. <code class="directive"><a href="./mod/mod_setenvif.html#setenvif">SetEnvIf</a></code> Ͽ
û α Ӱ ִ. ,
ϸ <code>gif</code> û α ʰų,
ܺ Ʈ ִ Ŭ̾Ʈ û α ִ.</p>
<h3><a name="response-headers" id="response-headers">Ǻ </a></h3>
<p><code class="directive"><a href="./mod/mod_headers.html#header">Header</a></code>
þ Ŭ̾Ʈ ȯ溯
HTTP ִ.
, Ŭ̾Ʈ û Ư ִ 쿡
ִ.</p>
<h3><a name="external-filter" id="external-filter">ܺ ϱ</a></h3>
<p><code class="module"><a href="./mod/mod_ext_filter.html">mod_ext_filter</a></code> <code class="directive"><a href="./mod/mod_ext_filter.html#extfilterdefine">ExtFilterDefine</a></code>
þ ܺ <code>disableenv=</code>
<code>enableenv=</code> ɼ Ͽ ȯ溯
ִ.</p>
<h3><a name="url-rewriting" id="url-rewriting">URL ۼ(Rewriting)</a></h3>
<p><code class="directive"><a href="./mod/mod_rewrite.html#rewritecond">RewriteCond</a></code>
<em>TestString</em> <code>%{ENV:...}</code>
ϸ mod_rewrite ۼ ȯ溯
ٸ ൿѴ. mod_rewrite տ <code>ENV:</code>
ʰ ϴ ȯ溯 ƴ ϶.
ٸ mod_rewrite
.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="special" id="special">Ư ȯ溯</a></h2>
<p>Ŭ̾Ʈ Ȱ ϱ ġ Ư
Ŭ̾Ʈ ڽ ൿ Ѵ. <code class="directive"><a href="./mod/mod_setenvif.html#browsermatch">BrowserMatch</a></code>
ȯ溯 Ͽ ̷ ذѴ. <code class="directive"><a href="./mod/mod_env.html#setenv">SetEnv</a></code> <code class="directive"><a href="./mod/mod_env.html#passenv">PassEnv</a></code>ε ϴ.</p>
<h3><a name="downgrade" id="downgrade">downgrade-1.0</a></h3>
<p>û ϴ HTTP/1.0 û
óѴ.</p>
<h3><a name="force-gzip" id="force-gzip">force-gzip</a></h3>
<p><code>DEFLATE</code> Ҷ ȯ溯
accept-encoding ϰ
.</p>
<h3><a name="force-no-vary" id="force-no-vary">force-no-vary</a></h3>
<p> Ŭ̾Ʈ
<code>Vary</code> ʵ带 . Ŭ̾Ʈ
ʵ带 ؼ Ѵ. ̷
ذѴ. ,
<strong>force-response-1.0</strong> Ѵ.</p>
<h3><a name="force-response" id="force-response">force-response-1.0</a></h3>
<p>HTTP/1.0 û ϴ Ŭ̾Ʈ HTTP/1.0
Ѵ. AOL Ͻÿ ־ .
HTTP/1.0 Ŭ̾Ʈ HTTP/1.1
Ƿ, ذϱ Ѵ.</p>
<h3><a name="gzip-only-text-html" id="gzip-only-text-html">gzip-only-text/html</a></h3>
<p> "1"̸ <code>text/html</code> ƴ content-type
<code class="module"><a href="./mod/mod_deflate.html">mod_deflate</a></code> DEFLATE
ʴ´. (gzip Ӹ ƴ϶ "identity" ƴ
ڵ) 쿡
<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code> Ѵ.</p>
<h3><a name="no-gzip" id="no-gzip">no-gzip</a></h3>
<p> ɼ ϸ <code class="module"><a href="./mod/mod_deflate.html">mod_deflate</a></code>
<code>DEFLATE</code> ʰ,
<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code> ڵ ڿ
ʴ´.</p>
<h3><a name="nokeepalive" id="nokeepalive">nokeepalive</a></h3>
<p><code class="directive"><a href="./mod/core.html#keepalive">KeepAlive</a></code>
Ѵ.</p>
<h3><a name="prefer-language" id="prefer-language">prefer-language</a></h3>
<p> <code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code> ൿ
ģ. (<code>en</code>, <code>ja</code>,
<code>x-klingon</code> ) ± ִٸ,
<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>
õѴ. ٸ Ϲ <a href="content-negotiation.html"></a> Ѵ.</p>
<h3><a name="redirect-carefully" id="redirect-carefully">redirect-carefully</a></h3>
<p> Ŭ̾Ʈ ̷ .
̷ óϴµ ִ Ŭ̾Ʈ
Ѵ. Microsoft WebFolders Ʈ
DAV 带 丮 ڿ ̷ óϴµ
־ .</p>
<h3><a name="suppress-error-charset" id="suppress-error-charset">suppress-error-charset</a></h3>
<p><em>2.0.40 ִ</em></p>
<p>ġ Ŭ̾Ʈ û ̷
Ŭ̾Ʈ ڵ ̷ ϴ(Ȥ
ʴ) 쿡 Ͽ 信 ڿ Ѵ.
ġ ġ ϴ ISO-8859-1
ǥѴ.</p>
<p> ̷ǵ ٸ
̻ ƴ϶ ̷
Ϸ Ѵ. ,
̻ϰ ִ.</p>
<p> ȯ溯 ġ ̷
ʵ Ͽ, ̷
ùٷ ϰ .</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="examples" id="examples"></a></h2>
<h3><a name="misbehaving" id="misbehaving">߸ ϴ Ŭ̾Ʈ ൿ
ϱ</a></h3>
<p>Ŭ̾Ʈ ̹ ˷ ذϱ
httpd.conf ϱ ٶ.</p>
<div class="example"><pre>#
# þ Ϲ HTTP Ѵ.
# ù° þ Netscape 2.x ̸
# keepalive ʴ´. ̵ ִ.
# ι° þ HTTP/1.1 ߸Ǿ 301̳ 302
# (̷) 信 keepalive
# ϴ Microsoft Internet Explorer 4.0b2 ̴.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
#
# þ ⺻ HTTP/1.1 Ͽ
# HTTP/1.0 Ծ HTTP/1.1 ʴ´.
#
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0</pre></div>
<h3><a name="no-img-log" id="no-img-log"> α ̹ û α ʱ</a></h3>
<p> ̹ û α
ʴ´. Ư 丮 Ȥ Ư ȣƮ
û α ʵ ִ.</p>
<div class="example"><pre>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</pre></div>
<h3><a name="image-theft" id="image-theft">"̹ " </a></h3>
<p> ڰ ִ
̹ ϵ ϴ Ѵ.
, ѵ 쿡 Ѵ.
츮 ̹ /web/images 丮 ȿ ִٰ
Ѵ.</p>
<div class="example"><pre>SetEnvIf Referer "^http://www.example.com/" local_referal
# Referer ʴ Ѵ
SetEnvIf Referer "^$" local_referal
<Directory /web/images>
Order Deny,Allow
Deny from all
Allow from env=local_referal
</Directory></pre></div>
<p> ڼ ApacheToday 丮 "<a href="http://apachetoday.com/news_story.php3?ltsn=2000-06-14-002-01-PS">
Keeping Your Images from Adorning Other Sites</a>" ϶.</p>
</div></div>
<div class="bottomlang">
<p><span> : </span><a href="./en/env.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="./fr/env.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="./ja/env.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="./ko/env.html" title="Korean"> ko </a> |
<a href="./tr/env.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</div><div class="top"><a href="#page-header"><img src="./images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />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 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 Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
var comments_shortname = 'httpd';
var comments_identifier = 'http://httpd.apache.org/docs/2.4/env.html';
(function(w, d) {
if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
d.write('<div id="comments_thread"><\/div>');
var s = d.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
(d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
}
else {
d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
}
})(window, document);
//--><!]]></script></div><div id="footer">
<p class="apache">Copyright 2025 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="./mod/"></a> | <a href="./mod/directives.html">þ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html"></a> | <a href="./sitemap.html">Ʈ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
prettyPrint();
}
//--><!]]></script>
</body></html>
|