.
: 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 HTTP ???? ?????? 2.0
.htaccess
????????????????????????
???????
???????? | ???????????? |
---|---|
.htaccess
?????? (?ʃ'???????) ?
???????????????????????????????????
??'??????????????????????????????????????????
??????????????????????????Ń??'???????-?????
.htaccess
????????????????????
AccessFileName
???????????
'?????????????-??????????????????? .config
?????????????????????????????????????
??-???:
AccessFileName .config
???.htaccess
??????????
???????
?+???????????????????????????-???????????? AllowOverride
????????????????????
????????????????.htaccess
???????
??'???????????????????
?????????????Ń????'??'??????+?'??????
.htaccess
??????????-??????????????????
???????-????????????.htaccess ??????????-????
?????? AllowOverride
??'??????????
????AddDefaultCharset
????????????
'????.htaccess
????????'????????????
??'?????? (????????????????????????-???????'?????
??'?????????) ???-???'????????
FileInfo
?????????????'???.htaccess
?
??????????????-?????????????????
AllowOverride FileInfo
???????Ƀ?????????
?????-???: | ??????????,??????????,????????,.htaccess |
???-: | FileInfo |
?????????????? .htaccess
????????????????-??'
???'??'??????-??????????????????????".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
.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
???
?'????????????Μ?????-????'??????
??????????????ʃ???????????????????
???????????????????????????????????????????
.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
?-???????????????
??????????
????????? ??????????? '????????????
???? .htaccess
???????????????
?????????? SSI ?-??????????????????????????????
.htaccess
???????˜?????????????????????
?R??-???:
Options +Includes
AddType text/html shtml
AddHandler server-parsed shtml
????????????????-??????????
AllowOverride Options
? AllowOverride
FileInfo
?-???????Ƀ??????????????????
???????? SSI ?? SSI ?????????? '????????????
?????????????? CGI ??????????????????? ??????????????????????????-???:
Options +ExecCGI
AddHandler cgi-script cgi pl
??????????????????????????????? CGI ?????? ????????????????????????????????-???:
Options +ExecCGI
SetHandler cgi-script
????????????????-??????????
AllowOverride Options
? AllowOverride
FileInfo
?-????Ƀ??????????????????
CGI ???????????????? CGI ??????????'????????????
??????????? .htaccess
?????????????+?????
?????????????-??????????'???????????
???????????????????????????????
AllowOverride
?????????
????????????????????????????? AllowOverride None
?????????????????????????????????????????
.htaccess
?????????????????????????????????
??????????R???????-???????? AllowOverride
None
???????????????????
?????????????????'???????????-????????????
??-???Apache ???????????????????.htaccess
???????
'????????????????????????????????????'????
??-???????????????????֜?????????????????'?????'???
???????????????????Ƀ?????????