summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd/htdocs/manual/mod/mod_alias.html.ja.jis
blob: 627a35c42b5e9990ddc7b9bcce7d0e5c0bd6950c (plain)
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
<?xml version="1.0" encoding="iso-2022-jp"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>

    <title>Apache module mod_alias</title>

  </head>
  <!-- English revision: 1.35 -->
  <!-- Background white, links blue (unvisited), navy (visited), red (active) -->
  <body bgcolor="#ffffff" text="#000000" link="#0000ff"
  vlink="#000080" alink="#ff0000">
        <div align="CENTER">
      <img src="../images/sub.gif" alt="[APACHE DOCUMENTATION]" /> 

      <h3>Apache HTTP Server Version 1.3</h3>
    </div>


    <h1 align="center">mod_alias $B%b%8%e!<%k(B</h1>

    <p>$B$3$N%b%8%e!<%k$O!"%[%9%H%U%!%$%k%7%9%F%`>e$N$$$m$$$m$J0c$&>l=j$r(B
    $B%I%-%e%a%s%H%D%j!<$K%^%C%W$9$k5!G=$H!"(B
    URL $B$N%j%@%$%l%/%H$r9T$J$&5!G=$rDs6!$7$^$9!#(B</p>

    <p><a href="module-dict.html#Status"
    rel="Help"><strong>$B%9%F!<%?%9(B:</strong></a> Base<br />
     <a href="module-dict.html#SourceFile"
    rel="Help"><strong>$B%=!<%9%U%!%$%k(B:</strong></a> mod_alias.c<br />
     <a href="module-dict.html#ModuleIdentifier"
    rel="Help"><strong>$B%b%8%e!<%k<1JL;R(B:</strong></a>
    alias_module</p>

    <h2>$B35MW(B</h2>

    <p>$B$3$N%b%8%e!<%k$N%G%#%l%/%F%#%V$O%5!<%P$K%j%/%(%9%H$,E~Ce$7$?$H$-$K(B
    URL $B$NA`:n$d@)8f$r$9$k$3$H$r2DG=$K$7$^$9!#(B<code>Alias</code>
    $B%G%#%l%/%F%#%V$H(B <code>ScriptAlias</code> $B%G%#%l%/%F%#%V$O(B
    URL $B$H%U%!%$%k%7%9%F%`$N%Q%9$r%^%C%W$9$k$?$a$K;HMQ$5$l$^$9!#$3$l$O(B
     <a href="core.html#documentroot"><code>DocumentRoot</code></a>
    $B$N2<$K$J$$%I%-%e%a%s%H$r%&%'%V$N%I%-%e%a%s%H%D%j!<$N0lIt$H$7$F(B
    $BAw$i$l$k$h$&$K$7$^$9!#(B<code>ScriptAlias</code>
    $B%G%#%l%/%F%#%V$K$O%^%C%W@h$N%G%#%l%/%H%j$,(B CGI
    $B%9%/%j%W%H$N$_$G$"$k$3$H$r<($9$H$$$&DI2C$N8z2L$,$"$j$^$9!#(B
    </p>

    <p><code>Redirect</code> $B%G%#%l%/%F%#%V$O%/%i%$%"%s%H$K0c$C$?(B
    URL $B$K?7$7$$%j%/%(%9%H$rAw$k$h$&$K;X<($7$^$9!#$3$l$O!"(B
    $B%j%=!<%9$,?7$7$$>l=j$K0\F0$7$?$H$-$K$h$/;HMQ$5$l$^$9!#(B</p>

    <p>URL $B$rA`:n$9$k$?$a$N$h$j6/NO$G=@Fp$J%G%#%l%/%F%#%V72$O(B <a
    href="mod_rewrite.html"><code>mod_rewrite</code></a>
    $B%b%8%e!<%k$K$"$j$^$9!#(B
    </p>

    <h2>$B%G%#%l%/%F%#%V(B</h2>

    <ul>
      <li><a href="#alias">Alias</a></li>

      <li><a href="#aliasmatch">AliasMatch</a></li>

      <li><a href="#redirect">Redirect</a></li>

      <li><a href="#redirectmatch">RedirectMatch</a></li>

      <li><a href="#redirecttemp">RedirectTemp</a></li>

      <li><a href="#redirectperm">RedirectPermanent</a></li>

      <li><a href="#scriptalias">ScriptAlias</a></li>

      <li><a href="#scriptaliasmatch">ScriptAliasMatch</a></li>
    </ul>
    <hr />

    <h2><a id="alias" name="alias">Alias $B%G%#%l%/%F%#%V(B</a></h2>

    <p>
     <a href="directive-dict.html#Syntax"
    rel="Help"><strong>$B9=J8(B:</strong></a> Alias <em>URL-path
    file-path</em>|<em>directory-path</em><br />
     <a href="directive-dict.html#Context"
    rel="Help"><strong>$B%3%s%F%-%9%H(B:</strong></a>
    $B%5!<%P@_Dj%U%!%$%k!"%P!<%A%c%k%[%9%H(B<br />
     <a href="directive-dict.html#Status"
    rel="Help"><strong>$B%9%F!<%?%9(B:</strong></a> Base<br />
     <a href="directive-dict.html#Module"
    rel="Help"><strong>$B%b%8%e!<%k(B:</strong></a> mod_alias</p>

    <p>Alias $B%G%#%l%/%F%#%V$O%I%-%e%a%s%H$r%m!<%+%k%U%!%$%k%7%9%F%`$N(B
    <a href="core.html#documentroot">DocumentRoot</a>
    $B0J30$N>l=j$KJ]4I$9$k$3$H$r2DG=$K$7$^$9!#(B<em>Url-path</em>
    (% $B$,I|9f$5$l$?(B) $B$G;O$^$k%Q%9$N(B URL $B$O(B
    <em>directory-filename</em>
    $B$G;O$^$k%m!<%+%k%U%!%$%k$K%^%C%W$5$l$^$9!#(B</p>

    <p>$BNc(B:</p>

    <blockquote>
      <code>Alias /image /ftp/pub/image</code>
    </blockquote>

    <p>http://myserver/image/foo.gif $B$X$N%j%/%(%9%H$KBP$7$F!"%5!<%P$O(B
    $B%U%!%$%k(B /ftp/pub/image/foo.gif $B$rJV$7$^$9!#(B</p>

    <p>$B$b$7(B <em>url-path</em> $B$N:G8e$K(B /
    $B$r=q$$$?$J$i!"%5!<%P$O%(%$%j%"%9$rE83+$9$k$?$a$K:G8e$N(B /
    $B$rMW5a$9$k$H$$$&$3$H$KCm0U$7$F$/$@$5$$!#$9$J$o$A!"(B<code>Alias /icons/
     /usr/local/apache/icons/</code> $B$H$$$&$b$N$r;HMQ$7$F$$$k$H!"(B
    <code>/icons</code> $B$H$$$&(B url $B$O%(%$%j%"%9$5$l$^$;$s!#(B</p>

    <p>$B%(%$%j%"%9$N(B<em>$B9T$-@h(B</em>$B$r4^$s$G$$$k(B <a
    href="core.html#directory"><code>&lt;Directory&gt;</code></a>
    $B%;%/%7%g%s$rDI2C$9$kI,MW$,$"$k$+$b$7$l$J$$$3$H$KCm0U$7$F$/$@$5$$!#(B
    $B%(%$%j%"%9$NE83+$O(B <code>&lt;Directory&gt;</code>
    $B%;%/%7%g%s$rD4$Y$kA0$K9T$J$o$l$^$9$N$G!"(B
    $B%(%$%j%"%9$N9T$-@h$N(B <code>&lt;Directory&gt;</code> $B%;%/%7%g%s$N$_(B
    $B8z2L$,$"$j$^$9!#(B
    ($B$7$+$7!"(B<a
    href="core.html#location"><code>&lt;Location&gt;</code></a>
    $B%;%/%7%g%s$O%(%$%j%"%9$,=hM}$5$l$kA0$K<B9T$5$l$^$9$N$G!"(B
    $B$3$A$i$OE,MQ$5$l$^$9!#(B)</p>

    <p><a href="#scriptalias">ScriptAlias</a>
    $B$b;2>H$7$F$/$@$5$$!#(B</p>
    <hr />

    <h2><a id="aliasmatch" name="aliasmatch">AliasMatch</a></h2>

    <p><a href="directive-dict.html#Syntax"
    rel="Help"><strong>$B9=J8(B:</strong></a> AliasMatch <em>regex
    file-path</em>|<em>directory-path</em><br />
     <a href="directive-dict.html#Context"
    rel="Help"><strong>$B%3%s%F%-%9%H(B:</strong></a>
    $B%5!<%P@_Dj%U%!%$%k!"%P!<%A%c%k%[%9%H(B<br />
     <a href="directive-dict.html#Status"
    rel="Help"><strong>$B%9%F!<%?%9(B:</strong></a> Base<br />
     <a href="directive-dict.html#Module"
    rel="Help"><strong>$B%b%8%e!<%k(B:</strong></a> mod_alias<br />
     <a href="directive-dict.html#Compatibility"
    rel="Help"><strong>$B8_49@-(B:</strong></a> Apache 1.3
    $B0J9_$G;HMQ2DG=(B</p>
    <p>$B$3$N%G%#%l%/%F%#%V$O(B <a href="#alias">Alias</a>
    $B$H$[$H$s$IF1$8$G$9$,!"4JC1$J@hF,$+$i$N%^%C%A$r9T$J$&$N$G$O$J$/!"(B
    $BI8=`@55,I=8=$rMxMQ$7$^$9!#$3$3$G;XDj$5$l$?@55,I=8=$H(B URL-path
    $B$,9g$&$+$I$&$+$rD4$Y!"9g$&>l9g$O3g8L$G3g$i$l$?%^%C%A$r(B
    $BM?$($i$l$?J8;zNs$GCV$-49$(!"$=$l$r%U%!%$%kL>$H$7$F;HMQ$7$^$9!#$?$H$($P!"(B
    <code>/icons</code> $B%G%#%l%/%H%j$r;HMQ$9$k$h$&$K$9$k(B
    $B$?$a$K$O0J2<$N$h$&$J$b$N$,;HMQ$G$-$^$9(B:</p>
<pre>
    AliasMatch ^/icons(.*) /usr/local/apache/icons$1
</pre>
    <hr />

    <h2><a id="redirect" name="redirect">Redirect
    $B%G%#%l%/%F%#%V(B</a></h2>

    <p>
     <a href="directive-dict.html#Syntax"
    rel="Help"><strong>$B9=J8(B:</strong></a> Redirect [<em>status</em>]
    <em>URL-path URL</em><br />
     <a href="directive-dict.html#Context"
    rel="Help"><strong>$B%3%s%F%-%9%H(B:</strong></a>
    $B%5!<%P@_Dj%U%!%$%k!"%P!<%A%c%k%[%9%H!"(B
    $B%G%#%l%/%H%j!"(B.htaccess<br />
     <a href="directive-dict.html#Override"
    rel="Help"><strong>$B>e=q$-(B:</strong></a> FileInfo<br />
     <a href="directive-dict.html#Status"
    rel="Help"><strong>$B%9%F!<%?%9(B:</strong></a> Base<br />
     <a href="directive-dict.html#Module"
    rel="Help"><strong>$B%b%8%e!<%k(B:</strong></a> mod_alias<br />
     <a href="directive-dict.html#Compatibility"
    rel="Help"><strong>$B8_49@-(B:</strong></a> $B%G%#%l%/%H%j$H(B
    .htaccess $B$N%3%s%F%-%9%H$O(B 1.1 $B0J9_$N$_!#(B<em>Status</em>
    $B0z?t$O(B Apache 1.2 $B0J9_!#(B</p>

    <p>Redirect $B%G%#%l%/%F%#%V$O8E$$(B URL $B$r?7$7$$$b$N$X%^%C%W$7$^$9!#(B
    $B?7$7$$(B URL $B$,%/%i%$%"%s%H$KJV$5$l$^$9!#$=$7$F!"(B
    $B%/%i%$%"%s%H$O?7$7$$%"%I%l%9$r$b$&0l2s<hF@$7$h$&$H$7$^$9!#(B
    <em>URL-path</em> (% $B$,I|9f$5$l$?(B) $B%Q%9$G;O$^$k%I%-%e%a%s%H$X$N(B
    $B$9$Y$F$N%j%/%(%9%H$O(B <em>URL</em> $B$G;O$^$k?7$7$$(B
    (% $B$,Id9f2=$5$l$?(B) URL $B$X$N%j%@%$%l%/%H%(%i!<$,JV$5$l$^$9!#(B</p>

    <p>$BNc(B:</p>

    <blockquote>
      <code>Redirect /service http://foo2.bar.com/service</code>
    </blockquote>

    <p>$B%/%i%$%"%s%H$O(B http://myserver/service/foo.txt
    $B$X$N%j%/%(%9%H$r9T$J$&$H!"Be$o$j$K(B http://foo2.bar.com/service/foo.txt
    $B$r%"%/%;%9$9$k$h$&$K9p$2$i$l$^$9!#(B</p>

    <p><strong>$BCm0U(B:</strong>
    $B@_Dj%U%!%$%kCf$N=gHV$K4X$o$i$:!"(BRedirect $B%G%#%l%/%F%#%V$O(B Alias
    $B%G%#%l%/%F%#%V$H(B ScriptAlias $B%G%#%l%/%F%#%V$h$j$bM%@h$5$l$^$9!#(B
    $B$^$?!"(B.htaccess $B%U%!%$%k$d(B &lt;Directory&gt;
    $B%;%/%7%g%s$NCf$G;H$o$l$F$$$?$H$7$F$b!"(B<em>URL-path</em>
    $B$OAjBP%Q%9$G$O$J$/!"@dBP%Q%9$G$J$1$l$P$J$j$^$;$s!#(B</p>

    <p>$B$b$7(B <em>status</em> $B0z?t$,M?$($i$l$F$$$J$1$l$P!"%j%@%$%l%/%H$O(B
    "temporary" (HTTP $B%9%F!<%?%9(B 302) $B$K$J$j$^$9!#$3$l$O%/%i%$%"%s%H$K(B
    $B%j%=!<%9$,0l;~E*$K0\F0$7$?$H$$$&$3$H$r<($7$^$9!#(B<em>Status</em>
    $B0z?t$O(B $BB>$N(B HTTP $B$N%9%F!<%?%9%3!<%I$rJV$9$?$a$K;HMQ$9$k$3$H$,$G$-$^$9(B:</p>

    <dl>
      <dt>permanent</dt>

      <dd>$B1J5W$K%j%@%$%l%/%H$r$9$k%9%F!<%?%9(B (301) $B$rJV$7$^$9!#(B
      $B$3$l$O%j%=!<%9$,1J5W$K0\F0$7$?$H$$$&$3$H$r0UL#$7$^$9!#(B</dd>

      <dt>temp</dt>

      <dd>$B0l;~E*$J%j%@%$%l%/%H%9%F!<%?%9(B (302)
      $B$rJV$7$^$9!#$3$l$,%G%U%)%k%H$G$9!#(B</dd>

      <dt>seeother</dt>

      <dd>"See Other" $B%9%F!<%?%9(B (303) $B$rJV$7$^$9!#(B
      $B$3$l$O%j%=!<%9$,B>$N$b$N$GCV$-49$($i$l$?$3$H$r0UL#$7$^$9!#(B</dd>

    <dt>gone</dt>

      <dd>"Gone" $B%9%F!<%?%9(B (410) $B$rJV$7$^$9!#$3$l$O%j%=!<%9$,1J5W$K(B
      $B:o=|$5$l$?$3$H$r0UL#$7$^$9!#$3$N%9%F!<%?%9$,;HMQ$5$l$?>l9g!"(B
      <em>url</em> $B0z?t$O>JN,$5$l$J$1$l$P$J$j$^$;$s!#(B</dd>
    </dl>

    <p><em>Status</em> $B$NCM$K%9%F!<%?%9%3!<%I$r?tCM$GM?$($k$3$H$G(B
    $BB>$N%9%F!<%?%9%3!<%I$bJV$9$3$H$,$G$-$^$9!#%9%F!<%?%9$,(B 300 $B$H(B 399
    $B$N4V$K$"$k>l9g!"(B<em>url</em> $B0z?t$OB8:_$7$F$$$J$1$l$P$$$1$^$;$s!#(B
    $B$=$NB>$N>l9g$O>JN,$5$l$F$$$J$1$l$P$J$j$^$;$s!#$?$@$7!"(B
    $B%9%F!<%?%9$O(B Apache $B$N%3!<%I$,CN$C$F$$$k$b$N$G$"$kI,MW$,$"$j$^$9(B
    (http_protocol.c $B$N4X?t(B <code>send_error_response</code>
    $B$r8+$F$/$@$5$$(B)$B!#(B</p>
    <p>$BNc(B:</p>

    <pre>
    Redirect permanent /one http://example.com/two<br />
    Redirect 303 /two http://example.com/other
    </pre>
    <hr />

    <h2><a id="redirectmatch"
    name="redirectmatch">RedirectMatch</a></h2>

    <p><a href="directive-dict.html#Syntax"
    rel="Help"><strong>$B9=J8(B:</strong></a> RedirectMatch
    [<em>status</em>] <em>regex URL</em><br />
     <a href="directive-dict.html#Context"
    rel="Help"><strong>$B%3%s%F%-%9%H(B:</strong></a> $B%5!<%P@_Dj%U%!%$%k!"(B
    $B%P!<%A%c%k%[%9%H!"%G%#%l%/%H%j!"(B.htaccess<br />
     <a href="directive-dict.html#Override"
    rel="Help"><strong>$B>e=q$-(B:</strong></a> FileInfo<br />
     <a href="directive-dict.html#Status"
    rel="Help"><strong>$B%9%F!<%?%9(B:</strong></a> Base<br />
     <a href="directive-dict.html#Module"
    rel="Help"><strong>$B%b%8%e!<%k(B:</strong></a> mod_alias<br />
     <a href="directive-dict.html#Compatibility"
    rel="Help"><strong>$B8_49@-(B:</strong></a> Apache 1.3
    $B0J9_$G;HMQ2DG=!#(B</p>

    <p>$B$3$N%G%#%l%/%F%#%V$O(B <a href="#redirect">Redirect</a>
    $B$H$[$H$s$IF1$8$G$9$,!"4JC1$J@hF,$+$i$N%^%C%A$r9T$J$&$N$G$O$J$/!"(B
    $BI8=`@55,I=8=$rMxMQ$7$^$9!#$3$3$G;XDj$5$l$?@55,I=8=$H(B URL-path
    $B$,9g$&$+$I$&$+$rD4$Y!"9g$&>l9g$O3g8L$G3g$i$l$?%^%C%A$r(B
    $BM?$($i$l$?J8;zNs$GCV$-49$(!"$=$l$r%U%!%$%kL>$H$7$F;HMQ$7$^$9!#(B
    $B$?$H$($P!"$9$Y$F$N(B GIF $B%U%!%$%k$rJL%5!<%P$NF1MM$JL>A0$N(B JPEG
    $B%U%!%$%k$K%j%@%$%l%/%H$9$k$K$O!"0J2<$N$h$&$J$b$N$r;H$$$^$9(B:
    </p>
<pre>
    RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg
</pre>
    <hr />

    <h2><a id="redirecttemp" name="redirecttemp">RedirectTemp
    $B%G%#%l%/%F%#%V(B</a></h2>

    <p>
     <a href="directive-dict.html#Syntax"
    rel="Help"><strong>$B9=J8(B:</strong></a> RedirectTemp <em>URL-path
    URL</em><br />
     <a href="directive-dict.html#Context"
    rel="Help"><strong>$B%3%s%F%-%9%H(B:</strong></a> $B%5!<%P@_Dj%U%!%$%k!"(B
    $B%P!<%A%c%k%[%9%H!"%G%#%l%/%H%j!"(B.htaccess<br />
     <a href="directive-dict.html#Override"
    rel="Help"><strong>$B>e=q$-(B:</strong></a> FileInfo<br />
     <a href="directive-dict.html#Status"
    rel="Help"><strong>$B%9%F!<%?%9(B:</strong></a> Base<br />
     <a href="directive-dict.html#Module"
    rel="Help"><strong>$B%b%8%e!<%k(B:</strong></a> mod_alias<br />
     <a href="directive-dict.html#Compatibility"
    rel="Help"><strong>$B8_49@-(B:</strong></a>
    $B$3$N%G%#%l%/%F%#%V$O(B Apache 1.2 $B0J9_$G$N$_;HMQ2DG=(B</p>

    <p>$B$3$N%G%#%l%/%F%#%V$O%/%i%$%"%s%H$K(B Redirect
    $B$,0l;~E*$J$b$N$G$"$k(B ($B%9%F!<%?%9(B 302) $B$3$H$rCN$i$;$^$9!#(B
    <code>Redirect temp</code> $B$H$^$C$?$/F1$8$G$9!#(B</p>
    <hr />

    <h2><a id="redirectperm" name="redirectperm">RedirectPermanent
    $B%G%#%l%/%F%#%V(B</a></h2>

    <p>
     <a href="directive-dict.html#Syntax"
    rel="Help"><strong>$B9=J8(B:</strong></a> RedirectPermanent
    <em>URL-path URL</em><br />
     <a href="directive-dict.html#Context"
    rel="Help"><strong>$B%3%s%F%-%9%H(B:</strong></a> $B%5!<%P@_Dj%U%!%$%k!"(B
    $B%P!<%A%c%k%[%9%H!"%G%#%l%/%H%j!"(B.htaccess<br />
     <a href="directive-dict.html#Override"
    rel="Help"><strong>$B>e=q$-(B:</strong></a> FileInfo<br />
     <a href="directive-dict.html#Status"
    rel="Help"><strong>$B%9%F!<%?%9(B:</strong></a> Base<br />
     <a href="directive-dict.html#Module"
    rel="Help"><strong>$B%b%8%e!<%k(B:</strong></a> mod_alias<br />
     <a href="directive-dict.html#Compatibility"
    rel="Help"><strong>$B8_49@-(B:</strong></a>
    $B$3$N%G%#%l%/%F%#%V$O(B Apache 1.2 $B0J9_$G$N$_;HMQ2DG=!#(B</p>

    <p>$B$3$N%G%#%l%/%F%#%V$O%/%i%$%"%s%H$K(B Redirect $B$,1J5WE*$J$b$N(B
    ($B%9%F!<%?%9(B 301) $B$G$"$k$3$H$rCN$i$;$^$9!#(B
    <code>Redirect premanent</code> $B$H$^$C$?$/F1$8$G$9!#(B</p>
    <hr />

    <h2><a id="scriptalias" name="scriptalias">ScriptAlias
    $B%G%#%l%/%F%#%V(B</a></h2>

    <p>
     <a href="directive-dict.html#Syntax"
    rel="Help"><strong>$B9=J8(B:</strong></a> ScriptAlias <em>URL-path
    file-path</em>|<em>directory-path</em><br />
     <a href="directive-dict.html#Context"
    rel="Help"><strong>$B%3%s%F%-%9%H(B:</strong></a>
    $B%5!<%P@_Dj%U%!%$%k!"%P!<%A%c%k%[%9%H(B<br />
     <a href="directive-dict.html#Status"
    rel="Help"><strong>$B%9%F!<%?%9(B:</strong></a> Base<br />
     <a href="directive-dict.html#Module"
    rel="Help"><strong>$B%b%8%e!<%k(B:</strong></a> mod_alias</p>

    <p>ScriptAlias $B%G%#%l%/%F%#%V$O!"BP>]%G%#%l%/%H%j$K(B
     <a href="mod_cgi.html">mod_cgi</a> $B$N(B cgi-script
    $B%O%s%I%i$G=hM}$5$l$k(B CGI
    $B%9%/%j%W%H$,$"$k$3$H$r<($90J30$O(B
    <a href="#alias">Alias</a>
    $B%G%#%l%/%F%#%V$HF1$8?6$kIq$$$r$7$^$9!#(B<em>URL-path</em>
    (% $B$,I|9f$5$l$?(B) $B%Q%9$G(B $B;O$^$k(B URL $B$O%m!<%+%k$N%U%!%$%k%7%9%F%`$N(B
    $B%U%k%Q%9$G$"$kFsHVL\$N0z?t$K%^%C%W$5$l$^$9!#(B</p>

    <p>$BNc(B:</p>

    <blockquote>
      <code>ScriptAlias /cgi-bin/ /web/cgi-bin/</code>
    </blockquote>

    <p>http://myserver/cgi-bin/foo $B$X$N%j%/%(%9%H$KBP$7$F%5!<%P$O%9%/%j%W%H(B
    /web/cgi-bin/foo $B$r<B9T$7$^$9!#(B</p>
    <hr />

    <h2><a id="scriptaliasmatch"
    name="scriptaliasmatch">ScriptAliasMatch</a></h2>

    <p><a href="directive-dict.html#Syntax"
    rel="Help"><strong>$B9=J8(B:</strong></a> ScriptAliasMatch <em>regex
    file-path</em>|<em>directory-path</em><br />
     <a href="directive-dict.html#Context"
    rel="Help"><strong>$B%3%s%F%-%9%H(B:</strong></a>
    $B%5!<%P@_Dj%U%!%$%k!"%P!<%A%c%k%[%9%H(B<br />
     <a href="directive-dict.html#Status"
    rel="Help"><strong>$B%9%F!<%?%9(B:</strong></a> Base<br />
     <a href="directive-dict.html#Module"
    rel="Help"><strong>$B%b%8%e!<%k(B:</strong></a> mod_alias<br />
     <a href="directive-dict.html#Compatibility"
    rel="Help"><strong>$B8_49@-(B:</strong></a> Apache 1.3
    $B0J9_$G;HMQ2DG=(B</p>

    <p>$B$3$N%G%#%l%/%F%#%V$O(B <a href="#scriptalias">ScriptAlias</a>
    $B$H$[$H$s$IF1$8$G$9$,!"4JC1$J@hF,$+$i$N%^%C%A$r9T$J$&$N$G$O$J$/!"(B
    $BI8=`@55,I=8=$rMxMQ$7$^$9!#$3$3$G;XDj$5$l$?@55,I=8=$H(B URL-path
    $B$,9g$&$+$I$&$+$rD4$Y!"9g$&>l9g$O3g8L$G3g$i$l$?%^%C%A$r(B
    $BM?$($i$l$?J8;zNs$GCV$-49$(!"$=$l$r%U%!%$%kL>$H$7$F;HMQ$7$^$9!#(B
    $B$?$H$($P!"I8=`$N(B <code>/cgi-bin</code>
    $B$r;HMQ$9$k$h$&$K$9$k$?$a$K$O!"0J2<$N$h$&$J$b$N$r;H$$$^$9(B:
    </p>
<pre>
    ScriptAliasMatch ^/cgi-bin(.*) /usr/local/apache/cgi-bin$1
</pre>
        <hr />

    <h3 align="CENTER">Apache HTTP Server Version 1.3</h3>
    <a href="./"><img src="../images/index.gif" alt="Index" /></a>
    <a href="../"><img src="../images/home.gif" alt="Home" /></a>

  </body>
</html>