.
[ ]   [ ]  [ ȥå | | ñ측 | ǿ | Хåå | إ ]


// author:1
***.htaccess :D
ʲ񤤤Ƥߤޤ~
Ͳ :)

(1) BASICǧ
&font(b){(1) BASICǧ};

# cat .htaccess
deny from all
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /var/www/cgi-bin/pass/.htpasswd
require valid-user
satisfy any

.htpasswdˤ2Ȥꤢ
1.ޥɥ١Ǻ롣(󥽡,telnet,ssh)
htpasswd -c /եѥ/ 桼̾
2.PHPץѤ

(2) CGIư

&font(b){(2) CGIư};

# cat .htaccess
Addtype application/x-httpd-cgi .cgi
Options ExecCGI
(3) ĥҤˤ륢
Addtype application/x-httpd-cgi .cgi

&font(b){(3) ĥҤˤ륢};

# cat .htaccess
<Files ~ "\.(dat|log|csv)$">
(4) 쥯
deny from all
</Files>

&font(b){(4) 쥯};
(5) Directory Index

# cat .htaccess
Redirect permanent / http://www.yahoo.co.jp

(6) ۥ(IPɥ쥹)ˤ륢
&font(b){(5) Directory Index};

# cat .htaccess
DirectoryIndex index.html index.htm index.cgi index.php

&font(b){(6) ۥ(IPɥ쥹)ˤ륢};

192.168.254.0/255.255.255.0ϵݤ
# cat .htaccess
order allow,deny
allow from all
deny from 192.168.254.0/255.255.255.0

192.168.254.0/255.255.255.0ϵĤ
# cat .htaccess
order deny,allow
deny from all
allow from 192.168.254.0/255.255.255.0

  ʬ եź źեե   Wikiȥå ǽ Хåå   إ   ǽRSS
Expert Menu
ǿ
2019-6-26 2016-7-19 2016-5-31 2016-4-12 2016-4-5 2016-3-28 2016-3-10 2015-8-7
ʤ
Yahoo Japan
̤
ͧͤʹ
URLΤäƤ
¾Ȥ
ǿСγǧ

Linuxexpert is one of the service presented by InfomationSquare. / OmakaseBlog Login  |  Register Now!