{"id":5421,"date":"2019-11-21T22:27:02","date_gmt":"2019-11-21T14:27:02","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5421"},"modified":"2019-11-21T22:27:03","modified_gmt":"2019-11-21T14:27:03","slug":"htdigest","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/htdigest","title":{"rendered":"htdigest\u547d\u4ee4 – \u7ba1\u7406\u7528\u6237\u6458\u8981\u8ba4\u8bc1\u6587\u4ef6"},"content":{"rendered":"\n

htdigest\u547d\u4ee4\u662fApache\u7684Web\u670d\u52a1\u5668\u5185\u7f6e\u5de5\u5177\uff0c\u7528\u4e8e\u521b\u5efa\u548c\u66f4\u65b0\u5b58\u50a8\u7528\u6237\u540d\u3001\u57df\u548c\u7528\u4e8e\u6458\u8981\u8ba4\u8bc1\u7684\u5bc6\u7801\u6587\u4ef6\u3002<\/p>\n\n\n\n

\u4f7f\u7528htdigest\u547d\u4ee4\u548c\u201c.htaccess\u201d\u6587\u4ef6\u53ef\u4ee5\u5728apache\u7684Web\u670d\u52a1\u5668\u4e2d\u5b9e\u73b0\uff0c\u8bbf\u95ee\u76ee\u5f55\u65f6\u8f93\u5165\u5bc6\u7801\u8ba4\u8bc1\u7684\u6548\u679c\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> htdigest [\u53c2\u6570] [\u5bc6\u7801\u6587\u4ef6\u3001\u57df\u3001\u7528\u6237\u540d]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-c<\/td>\u521b\u5efa\u5bc6\u7801\u6587\u4ef6<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u751f\u6210\u7528\u6237\u7684\u6458\u8981\u8ba4\u8bc1\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# htdigest -c \/var\/www\/html\/.htdigest test- realmtest\nAdding password for realmtest in realm test-.\nNew password: \nRe-type new password: <\/pre>\n","protected":false},"excerpt":{"rendered":"

htdigest\u547d\u4ee4\u662fApache\u7684Web\u670d\u52a1\u5668\u5185\u7f6e\u5de5\u5177\uff0c\u7528\u4e8e\u521b\u5efa\u548c\u66f4\u65b0\u5b58\u50a8\u7528\u6237\u540d\u3001\u57df\u548c\u7528\u4e8e\u6458\u8981\u8ba4\u8bc1\u7684\u5bc6\u7801\u6587\u4ef6 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5421"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5421"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5421\/revisions"}],"predecessor-version":[{"id":5508,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5421\/revisions\/5508"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}