. : http://itpm.msu.su/manual/ja/howto/htaccess.html
: Sat Feb 5 01:50:17 2005
: Mon Oct 1 23:13:31 2012
: Windows-1251

:
Apache ?????????: .htaccess ?????? - Apache HTTP ????<b style="color:black;background-color:#66ff66"></b>
<-
Apache > HTTP ???? > ??-????????? > ?????? 2.0 > How-To / ?????????

Apache ?????????: .htaccess ??????

Available Languages:  en  |  ja  |  ko 

This translation may be out of date. Check the English version for recent changes.

.htaccess ???????????????????????? ???????

top

.htaccess ??????

top

.htaccess ???????????'/???'??

.htaccess ?????? (?ʃ'???????) ? ??????????????????????????????????? ??'?????????????????????????????????????????? ??????????????????????????Ń??'???????-?????

:

.htaccess ???????????????????? AccessFileName ??????????? '?????????????-??????????????????? .config ????????????????????????????????????? ??-???:

AccessFileName .config

???.htaccess ?????????? ??????? ?+???????????????????????????-???????????? AllowOverride ???????????????????? ????????????????.htaccess ??????? ??'??????????????????? ?????????????Ń????'??'??????+?'?????? .htaccess ??????????-?????????????????? ???????-????????????.htaccess ??????????-???? ?????? AllowOverride ??'??????????

????AddDefaultCharset ???????????? '????.htaccess ????????'???????????? ??'?????? (????????????????????????-???????'????? ??'?????????) ???-???'???????? FileInfo ?????????????'???.htaccess ? ??????????????-????????????????? AllowOverride FileInfo ???????Ƀ?????????

:

?????-???: ??????????,??????????,????????,.htaccess
???-: FileInfo

?????????????? .htaccess ????????????????-??' ???'??'??????-??????????????????????".htaccess" ???????????-??????????????????

top

??? .htaccess ???????'?('????)?'??

??????????????????????'????-???????????? .htaccess ???????'??+????????? ?????????????????? .htaccess ??????? ?????+????????????????-????????????????????????? ?????'???????????????????????????????-?? ??????????????????

.htaccess ????????????????????????? ??????????+?????????????? root ?????'????'??????? ?????????'???-??????????????????????????? ???????????-?????????? .htaccess ???????'?? ?'ʃ?????????????????????-?????????? ???????ISP ??????????????????????????????? ????????????-??????????????-????????????

??'??????????? .htaccess ???????'? ?+?????????.htaccess ?????????????????? ????????????????????? <Directory> ?'??????+??????????? ??-?????

.htaccess ???????'??+??????????????

???????-???????AllowOverride ??????????? .htaccess ???????????????????Apache ? ?????????? .htaccess ????????????? ????'???.htaccess ?????????????????'??????' ???'????????-?????????????????! ?????.htaccess ?????????????????????????????

?????Apache ?Ń????-????????????????????????? ??????????? .htaccess ?????????Ƀ????????? ??????????(???????????Ń????? '????????????)????'???/www/htdocs/example ???? ????????????????????-???Apache ??????????????????

/.htaccess
/www/.htaccess
/www/htdocs/.htaccess
/www/htdocs/example/.htaccess

????'???????????????????????????????????'??????? ???????????????????????-?????????????????? ?????'???????????????????(??????.htaccess ? / ???-?????????-????????????? ???????????????????)

???'?-?????????????????????????????? ???????????????????????'?????-????????? ??????????????????????????????'???'????ʃ ???????????????????????????Ƀ????????????R???? ?ʃ?'??????????+?????????-????????? ??????????????????????????????'????????? ??????????AllowOverride ? ???????'?????????????????????????? ????R???????????? ??-?????

????????????????????'??? .htaccess ? /www/htdocs/example ?????????+???????????? ?????? Directory ?'????? <Directory /www/htdocs/example> ???????? ???????:

/www/htdocs/example ? .htaccess ??????:

/www/htdocs/example ? .htaccess ???????

AddType text/example .exm

httpd.conf ??'????? file

<Directory /www/htdocs/example>
AddType text/example .exm
</Directory>

??'?????????????????????????????????? ????????????????????????????????? ??????????Apache ??Ɯ'? 1 ???+???? ??????'??????

AllowOverride ??????????? ? none ???????? .htaccess ?????? ?'??????????????-?????

AllowOverride None

top

???????????Ń???

.htaccess ?????????????????? .htaccess ????????????????????????????????????????Ń??????? ??'????????????????? .htaccess ??????? ?????'???????????????????????????????????????? ??Ń???????????'??????????????? .htaccess ? ??????????????????? .htaccess ??????? ????-????'?????'???????????? .htaccess ? ????????'?????????????????-????????????????? ??????????-??????????'?????'???

:

???????? /www/htdocs/example1 ?˜???? .htaccess ?????????????:

Options +ExecCGI

(: .htaccess ??????? "Options" ???????????-?????????? "AllowOverride Options" ?-????Ƀ?????????)

???????? /www/htdocs/example1/example2 ?? ?????? .htaccess ?????????????:

Options Includes

??? .htaccess ????????????? /www/htdocs/example1/example2 ?? CGI ???? ?????'?????????Options Includes ??? ?'????????????Μ?????-????'??????

top

??

??????????????ʃ??????????????????? ??????????????????????????????????????????? .htaccess ???????'?Ƀ????????????????????? ????????????'??????????????? <Directory> ?'?????? ??????????????????????????.htaccess ???????????????????????-?????-???'????-????? ??? .htaccess ???????'???-??????'???-??????'? ????? ??'????????????

????????????????? .htaccess ?'? ??Ƀ??'?????????????????????????????'? ????'???

???????????Ń?????????? "AllowOverride AuthConfig" ????????? Ƀ?????????

.htaccess ???????:

AuthType Basic
AuthName "Password Required"
AuthUserFile /www/passwords/password.file
AuthGroupFile /www/passwords/group.file
Require Group admins

????????????????-?????????? AllowOverride AuthConfig ?-??????????????? ??????????

????????? ??????????? '????????????

top

SSI ?

???? .htaccess ??????????????? ?????????? SSI ?-?????????????????????????????? .htaccess ???????˜????????????????????? ?R??-???:

Options +Includes
AddType text/html shtml
AddHandler server-parsed shtml

????????????????-?????????? AllowOverride Options ? AllowOverride FileInfo ?-???????Ƀ??????????????????

???????? SSI ?? SSI ?????????? '????????????

top

CGI ?

?????????????? CGI ??????????????????? ??????????????????????????-???:

Options +ExecCGI
AddHandler cgi-script cgi pl

??????????????????????????????? CGI ?????? ????????????????????????????????-???:

Options +ExecCGI
SetHandler cgi-script

????????????????-?????????? AllowOverride Options ? AllowOverride FileInfo ?-????Ƀ??????????????????

CGI ???????????????? CGI ??????????'????????????

top

?

??????????? .htaccess ?????????????+????? ?????????????-??????????'???????????

??????????????????????????????? AllowOverride ????????? ????????????????????????????? AllowOverride None ????????????????????????????????????????? .htaccess ????????????????????????????????? ??????????R???????-???????? AllowOverride None ???????????????????

?????????????????'???????????-???????????? ??-???Apache ???????????????????.htaccess ??????? '????????????????????????????????????'???? ??-???????????????????֜?????????????????'?????'??? ???????????????????Ƀ?????????

Available Languages:  en  |  ja  |  ko