{"id":397,"date":"2018-04-04T00:00:37","date_gmt":"2018-04-03T16:00:37","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=397"},"modified":"2018-04-04T00:00:37","modified_gmt":"2018-04-03T16:00:37","slug":"apache-httpd-ah01630-ah01797-error-resolve","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/apache-httpd-ah01630-ah01797-error-resolve.html","title":{"rendered":"httpd AH01630\u3001AH01797\u9519\u8bef\u89e3\u51b3"},"content":{"rendered":"<p>\u4e3a\u4e86\u4ee5\u540e\u4ee3\u7801\u66f4\u65b0\u3001\u63d0\u4ea4\u65b9\u4fbf\uff0c\u628a\u516c\u53f8\u6d4b\u8bd5\u3001\u6b63\u5f0f\u670d\u52a1\u5668\u4e0a\u7684\u76f8\u5173\u670d\u52a1\u7684\u914d\u7f6e\u66f4\u6539\u4e86\u4e00\u4e0b\u3002\u672c\u6765\u53ea\u662f\u6539\u4e86\u4e0b\u4ee3\u7801\u6587\u4ef6\u5939\u4f4d\u7f6e\uff0c\u4ee5\u4e3a\u53ea\u9700\u8981\u6539\u4e00\u4e0bApache\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u4ee3\u7801\u6587\u4ef6\u5939\u8def\u5f84\u5c31\u884c\uff0c\u6ca1\u60f3\u5230\u8fd8\u9047\u5230\u4e24\u4e2a\u95ee\u9898\uff0c\u8fd9\u91cc\u8bb0\u5f55\u4e00\u4e0b\u3002<br \/>\n<!--more--><br \/>\n\u51fa\u9519\u7684\u7cfb\u7edf\u4e3aCentOS7\uff0chttpd\u7248\u672c\u4e3aApache\/2.4.6\u3002<br \/>\n\u9996\u5148\uff0c\u6211\u4e2a\u4eba\u80af\u5b9a\u662f\u66f4\u559c\u6b22\u4f7f\u7528Nginx\u7684\uff0c\u4f46\u662f\u7531\u4e8e\u5386\u53f2\u9057\u7559\u95ee\u9898\uff0c\u4e0d\u5f97\u4e0d\u4f7f\u7528Apache\uff0c\u867d\u7136\u4e0d\u719f\u6089\uff0c\u4f46\u4e5f\u4e0d\u5f97\u4e0d\u786c\u7740\u5934\u76ae\u4e0a\u4e86\uff0c\u8fd9\u4e0d\uff0c\u5f88\u4e45\u6ca1\u66f4\u65b0\u7684\u6b63\u5f0f\u670d\u52a1\u5668\uff0c\u4e00\u91cd\u542f\u5c31\u9047\u5230\u95ee\u9898\u4e86\u3002<br \/>\n\u9996\u5148\u662fAH01630\u3002<br \/>\n\u8fd9\u662f\u6539\u4e4b\u524d\u7684\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code>&lt;VirtualHost *:80&gt;\nServerName xxx\nDocumentRoot \/var\/xxx\/public\nServerAlias xxx\nErrorLog \/var\/log\/httpd\/erp.error.log\nCustomLog \/var\/log\/httpd\/erp.requests.log combined\n&lt;Directory \/var\/xxxx\/public&gt;\nDirectoryIndex index.html index.php\n        AllowOverride All\n        Order deny,allow\n        Allow from all\n&lt;\/Directory&gt;\n&lt;\/VirtualHost&gt;\n<\/code><\/pre>\n<p>\u66f4\u6539\u5b8c\u914d\u7f6e\u6587\u4ef6\u4e4b\u540e\uff0c\u6211\u8fd8\u7279\u610f<strong>httpd -t<\/strong>\u4e86\u4e00\u4e0b\uff0chttpd\u63d0\u793a\u6211\uff0c<strong>Syntax OK<\/strong>\uff0c\u7ed3\u679c\u91cd\u542f\u4e4b\u540e\uff0c\u5374\u662fhttpd\u7684\u9ed8\u8ba4\u9875\u9762\uff0c\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6\u663e\u793a\uff1a<\/p>\n<pre><code>[Tue Mar 27 16:04:40.847499 2018] [authz_core:error] [pid 28329] [client 14.154.178.13:24923] AH01630: client denied by server configuration: \/var\/xxx\/public\/noindex, referer: http:\/\/xxxx.xxx.xxx\/noindex\/css\/open-sans.css\n<\/code><\/pre>\n<p>\u5929\u6740\u7684\uff0c\u8fd9AH01630\u4e0d\u77e5\u9053\u600e\u4e48\u5c31\u51fa\u6765\u4e86\uff0c\u660e\u660e\u53ea\u6539\u4e86\u4e0b\u4ee3\u7801\u8def\u5f84\uff0c\u8fde.htaccess\u90fd\u6ca1\u52a8\uff0c\u76f4\u63a5\u5c31\u62a5\u9519\u4e86\u3002<br \/>\n\u67e5\u627e\u6587\u6863\u5f97\u77e5\uff0c\u7531\u4e8eApache2.2\u548c2.4\u7684\u533a\u522b\uff0c\u6709\u4e9b\u914d\u7f6e\u8ddf\u4e4b\u524d\u4e0d\u4e00\u6837\uff0c\u9700\u8981\u5c06<strong>Allow from all<\/strong>\u8fd9\u4e00\u884c\u6539\u6210<strong>Require all granted<\/strong>\uff0c\u8fd9\u6837\u5c31\u80fd\u89e3\u51b3\u4e86\u3002<br \/>\n\u7136\u540e\u662fAH01797\u95ee\u9898\u3002<br \/>\n\u8fd9\u662f\u6539\u4e4b\u524d\u7684\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code>&lt;VirtualHost *:80&gt;\nServerName xxx\nDocumentRoot \/var\/xxxx\/\nServerAlias xxxx\nErrorLog \/var\/log\/httpd\/xxx.error.log\nCustomLog \/var\/log\/httpd\/xx.log combined\n&lt;Directory \/var\/xxxx&gt;\n        Options Indexes FollowSymLinks MultiViews\n        AllowOverride FileInfo Options\n        Order allow,deny\n        allow from all\n&lt;\/Directory&gt;\nHeader unset X-Powered-By\n&lt;\/VirtualHost&gt;\n<\/code><\/pre>\n<p>\u8fd9\u5176\u5b9e\u4e5f\u5c31\u662fthinkphp5\u7684Apache\u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u4ee3\u7801\u6ca1\u53d8\u7684\u60c5\u51b5\u4e0b\uff0c\u91cd\u542f\u4e4b\u540e\uff0c\u8bbf\u95ee\u5c31\u62a5AH01797\u9519\u8bef\u4e86\uff0c\u8fd9\u662f\u62a5\u9519\u65e5\u5fd7\uff1a<\/p>\n<pre><code>[Tue Mar 27 16:46:28.011486 2018] [access_compat:error] [pid 28524] [client 14.154.178.13:24724] AH01797: client denied by server configuration: \/xxxx\/noindex, referer: http:\/\/xxxx\/noindex\/css\/open-sans.css\n<\/code><\/pre>\n<p>\u540c\u6837\uff0c\u67e5\u770b\u6587\u6863\u5f97\u77e5\uff0c\u9700\u8981\u5c06\u8fd9\u4e24\u884c\uff1a<\/p>\n<pre><code>Order allow,deny\nallow from all\n<\/code><\/pre>\n<p>\u66ff\u6362\u6210\uff1a<\/p>\n<pre><code>Require all granted\n<\/code><\/pre>\n<p>\u5c31\u8fd9\u4e48\u4e00\u884c\u914d\u7f6e\u5c31\u884c\uff0c\u7b80\u76f4\u4e86\uff01<br \/>\n\u53c2\u8003\u6587\u6863\uff1a<br \/>\nhttps:\/\/wiki.apache.org\/httpd\/ClientDeniedByServerConfiguration<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4e86\u4ee5\u540e\u4ee3\u7801\u66f4\u65b0\u3001\u63d0\u4ea4\u65b9\u4fbf\uff0c\u628a\u516c\u53f8\u6d4b\u8bd5\u3001\u6b63\u5f0f\u670d\u52a1\u5668\u4e0a\u7684\u76f8\u5173\u670d\u52a1\u7684\u914d\u7f6e\u66f4\u6539\u4e86\u4e00\u4e0b\u3002\u672c\u6765\u53ea\u662f\u6539\u4e86\u4e0b\u4ee3\u7801\u6587\u4ef6\u5939\u4f4d\u7f6e\uff0c &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/apache-httpd-ah01630-ah01797-error-resolve.html\"> <span class=\"screen-reader-text\">httpd AH01630\u3001AH01797\u9519\u8bef\u89e3\u51b3<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[183],"tags":[15,198],"class_list":["post-397","post","type-post","status-publish","format-standard","hentry","category-more","tag-apache","tag-httpd"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=397"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/397\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}