d04b847653a48fa4dfc11b0daddeeedab9aef6cb
Linux/Apache/Home.md
... | ... | @@ -62,24 +62,24 @@ httpd.conf を修正するより conf.d に VirtualHosts.conf として専用の |
62 | 62 | - [認証、承認、アクセス制御](http://httpd.apache.org/docs/current/howto/auth.html) |
63 | 63 | - [mod_auth_digest](http://httpd.apache.org/docs/current/mod/mod_auth_digest.html) |
64 | 64 | - レルム/ユーザ/パスワード追加 |
65 | - ``` |
|
66 | - htdigest [-c] passwdfile <realm> <username> |
|
67 | - ``` |
|
65 | + ``` |
|
66 | + htdigest [-c] passwdfile <realm> <username> |
|
67 | + ``` |
|
68 | 68 | - /etc/httpd/conf.d/DigestAuth.conf |
69 | - ```apache |
|
70 | - <Directory "/var/www/html/Download/<realm>"> |
|
71 | - AllowOverride AuthConfig |
|
72 | - AuthType Digest |
|
73 | - AuthName "<realm>" |
|
74 | - AuthUserFile /var/www/passwd/passwords_digest |
|
75 | - Require user <username> |
|
76 | - Options None |
|
77 | - Options Indexes |
|
78 | - DirectoryIndex index.html index.htm index.php |
|
79 | - Order allow,deny |
|
80 | - Allow from all |
|
81 | - </Directory> |
|
82 | - ``` |
|
69 | + ```apache |
|
70 | + <Directory "/var/www/html/Download/<realm>"> |
|
71 | + AllowOverride AuthConfig |
|
72 | + AuthType Digest |
|
73 | + AuthName "<realm>" |
|
74 | + AuthUserFile /var/www/passwd/passwords_digest |
|
75 | + Require user <username> |
|
76 | + Options None |
|
77 | + Options Indexes |
|
78 | + DirectoryIndex index.html index.htm index.php |
|
79 | + Order allow,deny |
|
80 | + Allow from all |
|
81 | + </Directory> |
|
82 | + ``` |
|
83 | 83 | |
84 | 84 | # Apacheでhttp-equiv属性値を反映させる |
85 | 85 | - [META要素「http-equiv属性値とHTTPヘッダー」について考える](http://www.infoaxia.com/tools/blog/archives/cat3/) |