使用者工具

網站工具


client_denied_by_server_configuration

網站很不正常:

[Sat Aug 21 14:18:58.335471 2021] [access_compat:error] [pid 5620:tid 139668536403520] [client 192.168.1.20:60772] AH01797: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-content/plugins/visual-portfolio/assets/vendor/photoswipe/dist/photoswipe.css, referer: https://blog.feuer.idv.tw/?paged=3
[Sat Aug 21 14:18:58.335479 2021] [access_compat:error] [pid 5652:tid 139668460901952] [client 192.168.1.20:60774] AH01797: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-content/plugins/visual-portfolio/assets/vendor/photoswipe/dist/default-skin/default-skin.css, referer: https://blog.feuer.idv.tw/?paged=3
[Sat Aug 21 14:18:58.877975 2021] [access_compat:error] [pid 5613:tid 139668536403520] [client 192.168.1.20:60780] AH01797: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-content/plugins/visual-portfolio/assets/vendor/photoswipe/dist/photoswipe.min.js, referer: https://blog.feuer.idv.tw/?paged=3
[Sat Aug 21 14:18:58.900634 2021] [access_compat:error] [pid 5613:tid 139668536403520] [client 192.168.1.20:60780] AH01797: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-content/plugins/visual-portfolio/assets/vendor/photoswipe/dist/photoswipe-ui-default.min.js, referer: https://blog.feuer.idv.tw/?paged=3
[Sat Aug 21 14:18:59.449960 2021] [access_compat:error] [pid 5613:tid 139668536403520] [client 192.168.1.20:60780] AH01797: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-content/plugins/visual-portfolio/assets/vendor/photoswipe/dist/photoswipe.min.js, referer: https://blog.feuer.idv.tw/?paged=3

把 order,deny,allow 等舊的語法改成新的 Require,access_compat 沒了,但是還是一直出現認證錯誤 authz_core:error,不論如何修改 <Directory> - Require,Auth??? ,或改變 modules,幾乎每個 vhost 都有。

[Wed Aug 25 11:05:08.047984 2021] [authz_core:error] [pid 5424:tid 140132954920512] [client 192.168.1.20:57924] AH01630: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-includes/js/dist/vendor/lodash.min.js, referer: https://blog.feuer.idv.tw/wp-admin/post.php?post=7175&action=edit
[Wed Aug 25 11:05:08.048009 2021] [authz_core:error] [pid 5432:tid 140132887811648] [client 192.168.1.20:57926] AH01630: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-includes/js/dist/vendor/react.min.js, referer: https://blog.feuer.idv.tw/wp-admin/post.php?post=7175&action=edit
[Wed Aug 25 11:05:08.085718 2021] [authz_core:error] [pid 5424:tid 140132954920512] [client 192.168.1.20:57924] AH01630: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-includes/js/dist/vendor/react-dom.min.js, referer: https://blog.feuer.idv.tw/wp-admin/post.php?post=7175&action=edit
[Wed Aug 25 11:05:08.103571 2021] [authz_core:error] [pid 5424:tid 140132954920512] [client 192.168.1.20:57924] AH01630: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-includes/js/dist/vendor/moment.min.js, referer: https://blog.feuer.idv.tw/wp-admin/post.php?post=7175&action=edit
[Wed Aug 25 11:05:08.873381 2021] [authz_core:error] [pid 5463:tid 140133231748672] [client 192.168.1.20:57920] AH01630: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-includes/js/dist/vendor/lodash.min.js, referer: https://blog.feuer.idv.tw/wp-admin/post.php?post=7175&action=edit
[Wed Aug 25 11:05:08.879159 2021] [authz_core:error] [pid 5463:tid 140133231748672] [client 192.168.1.20:57920] AH01630: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-includes/js/dist/vendor/react.min.js, referer: https://blog.feuer.idv.tw/wp-admin/post.php?post=7175&action=edit
[Wed Aug 25 11:05:08.896253 2021] [authz_core:error] [pid 5463:tid 140133231748672] [client 192.168.1.20:57920] AH01630: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-includes/js/dist/vendor/react-dom.min.js, referer: https://blog.feuer.idv.tw/wp-admin/post.php?post=7175&action=edit
[Wed Aug 25 11:05:08.934478 2021] [authz_core:error] [pid 5463:tid 140133231748672] [client 192.168.1.20:57920] AH01630: client denied by server configuration: /var/www/html/hosts/blog.feuer.idv.tw/wp-includes/js/dist/vendor/moment.min.js, referer: https://blog.feuer.idv.tw/wp-admin/post.php?post=7175&action=edit
[Wed Aug 25 12:26:36.625314 2021] [authz_core:error] [pid 811442:tid 140447133443648] [client ::1:56182] AH01630: client denied by server configuration: /var/www/html/hosts/localhost/phpmyadmin/js/vendor/codemirror/lib/codemirror.js
[Wed Aug 25 12:26:36.625788 2021] [authz_core:error] [pid 811565:tid 140447258355264] [client ::1:56162] AH01630: client denied by server configuration: /var/www/html/hosts/localhost/phpmyadmin/js/vendor/codemirror/addon/runmode/runmode.js
[Wed Aug 25 12:26:36.625858 2021] [authz_core:error] [pid 811565:tid 140447167014464] [client ::1:56178] AH01630: client denied by server configuration: /var/www/html/hosts/localhost/phpmyadmin/js/vendor/codemirror/addon/hint/show-hint.js
[Wed Aug 25 12:26:36.625971 2021] [authz_core:error] [pid 811483:tid 140447141836352] [client ::1:56180] AH01630: client denied by server configuration: /var/www/html/hosts/localhost/phpmyadmin/js/vendor/codemirror/addon/hint/sql-hint.js
[Wed Aug 25 12:26:36.627475 2021] [authz_core:error] [pid 811442:tid 140447141836352] [client ::1:56174] AH01630: client denied by server configuration: /var/www/html/hosts/localhost/phpmyadmin/js/vendor/codemirror/addon/lint/lint.js
[Wed Aug 25 12:26:36.628869 2021] [authz_core:error] [pid 811442:tid 140447133443648] [client ::1:56182] AH01630: client denied by server configuration: /var/www/html/hosts/localhost/phpmyadmin/js/vendor/codemirror/mode/sql/sql.js
[Wed Aug 25 12:26:36.662992 2021] [authz_core:error] [pid 811442:tid 140447133443648] [client ::1:56182] AH01630: client denied by server configuration: /var/www/html/hosts/localhost/phpmyadmin/js/vendor/codemirror/addon/runmode/runmode.js

幾乎每個 vhost 都有,後來發現,原來是這裡:
dokuwiki.conf :

<LocationMatch "/(data|conf|bin|inc|vendor)/">
            #order allow,deny
            #deny from all
            Require all denied
            #satisfy all
        </LocationMatch>

這個 Directive 是全域性的,裡面有個 vendor ,改成

<LocationMatch "/(data|conf|bin|inc)/">
            #order allow,deny
            #deny from all
            Require all denied
            #satisfy all
        </LocationMatch>

就好了。


那樣影響太多,還是一個一個確定比較好:

<Directory /usr/share/dokuwiki/bin>
    Require all denied
</Directory>

<Directory /usr/share/dokuwiki/inc>
    Require all denied
</Directory>

<Directory /usr/share/dokuwiki/conf>
    Require all denied
</Directory>

<Directory /usr/share/dokuwiki/data>
    Require all denied
</Directory>

<Directory /usr/share/dokuwiki/vendor>
    Require all denied
</Directory>
client_denied_by_server_configuration.txt · 上一次變更: 2021/08/25 06:01 由 127.0.0.1