我今天来,因为我得到一个有趣的错误,即使它应该是基本的。
[Fri Sep 08 15:20:03.551343 2017] [auth_basic:error] [pid 28263:tid 140305491785472] [client 192.168.1.107:49808] AH01617: user mac: authentication failure for "/server/php/index.php": Password Mismatch, referer: http://share.xxx.net/jquery-ui.html [Fri Sep 08 15:20:03.733753 2017] [auth_basic:error] [pid 28263:tid 140305470805760] [client 192.168.1.107:49808] AH01617: user mac: authentication failure for "/server/php/index.php": Password Mismatch, referer: http://share.xxx.net/jquery-ui.html [Fri Sep 08 15:20:03.899829 2017] [auth_basic:error] [pid 28263:tid 140305449826048] [client 192.168.1.107:49808] AH01617: user mac: authentication failure for "/server/php/index.php": Password Mismatch, referer: http://share.xxx.net/jquery-ui.html
它应该显然表明我的密码是错误的…除非它不是,我已经被authentication。 为了提供更多积压,我正在使用PHP / JS制作的互联网上的file upload应用程序。 我使用我自己的服务器上的基本身份validation来保护它。
<VirtualHost *:80> Define ENV share.xxx.net DocumentRoot "/opt/httpd-2.4.12/htdocs/${ENV}/prod" ServerName ${ENV} CustomLog /opt/httpd/logs/${ENV}-access.log combined ErrorLog /opt/httpd/logs/${ENV}-error.log <Directory "/opt/httpd-2.4.12/htdocs/${ENV}/prod"> AllowOverride All Options -Indexes Order Allow,Deny Allow from all <Limit GET HEAD POST PUT DELETE OPTIONS> Order Allow,Deny Allow from all </Limit> AuthType Basic AuthName "Service management area" AuthBasicProvider file AuthUserFile "/opt/httpd/security/AuthUser" AuthGroupFile "/opt/httpd/security/AuthGroup" Require group management </Directory> </VirtualHost>
当我连接到应用程序,它是问我一个用户名/密码,我正确提供。 我可以获得访问权限。 上传正在工作,下载的文件也在工作,但唯一不起作用的function是“删除”。
192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /jquery-ui.html HTTP/1.1" 200 3544 "http://share.xxx.net/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /css/demo.css HTTP/1.1" 200 600 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /css/jquery.fileupload.css HTTP/1.1" 200 409 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /css/jquery.fileupload-ui.css HTTP/1.1" 200 521 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /js/jquery.iframe-transport.js HTTP/1.1" 200 2901 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /js/jquery.fileupload-process.js HTTP/1.1" 200 1686 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /js/jquery.fileupload-audio.js HTTP/1.1" 200 1210 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /js/jquery.fileupload-image.js HTTP/1.1" 200 2642 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /js/jquery.fileupload-video.js HTTP/1.1" 200 1210 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /js/jquery.fileupload-validate.js HTTP/1.1" 200 1332 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /js/jquery.fileupload.js HTTP/1.1" 200 13326 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /js/jquery.fileupload-ui.js HTTP/1.1" 200 4844 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /js/jquery.fileupload-jquery-ui.js HTTP/1.1" 200 1221 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:49 +0000] "GET /js/main.js HTTP/1.1" 200 1030 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:50 +0000] "GET /img/loading.gif HTTP/1.1" 200 3699 "http://share.xxx.net/css/jquery.fileupload-ui.css" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:50 +0000] "GET /server/php/ HTTP/1.1" 200 591 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:50 +0000] "GET /server/php/files/thumbnail/Consulate%20ID%20mac.jpg HTTP/1.1" 200 10727 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:50 +0000] "GET /server/php/files/thumbnail/Permis%20de%20travail%20VN%20.jpg HTTP/1.1" 200 1481 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:16:52 +0000] "DELETE /server/php/index.php?file=Consulate%20ID%20mac.jpg HTTP/1.1" 401 381 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - - [08/Sep/2017:15:20:02 +0000] "DELETE /server/php/index.php?file=Consulate%20ID%20mac.jpg HTTP/1.1" 401 381 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:20:02 +0000] "DELETE /server/php/index.php?file=Consulate%20ID%20mac.jpg HTTP/1.1" 401 381 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - - [08/Sep/2017:15:20:03 +0000] "DELETE /server/php/index.php?file=Consulate%20ID%20mac.jpg HTTP/1.1" 401 381 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:20:03 +0000] "DELETE /server/php/index.php?file=Consulate%20ID%20mac.jpg HTTP/1.1" 401 381 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - - [08/Sep/2017:15:20:03 +0000] "DELETE /server/php/index.php?file=Consulate%20ID%20mac.jpg HTTP/1.1" 401 381 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:20:03 +0000] "DELETE /server/php/index.php?file=Consulate%20ID%20mac.jpg HTTP/1.1" 401 381 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - - [08/Sep/2017:15:20:03 +0000] "DELETE /server/php/index.php?file=Consulate%20ID%20mac.jpg HTTP/1.1" 401 381 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0" 192.168.1.107 - mac [08/Sep/2017:15:20:03 +0000] "DELETE /server/php/index.php?file=Consulate%20ID%20mac.jpg HTTP/1.1" 401 381 "http://share.xxx.net/jquery-ui.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0"
审查文件,我可以看到有双线,就像我通过身份validation,我没有进行身份validation,但我没有得到它可能来自哪里。 对于logging,我在Firefox 55.0.3上使用Apache 2.4.12和PHP 5.6.22。 而我正在使用的应用程序是jQueryfile upload( https://github.com/blueimp/jQuery-File-Upload )。 我也检查了任何stream氓.htaccess,并find一个,但即使删除后,行为保持不变。 我也检查了FS的权限,一切都在apache的用户/组与RW权限,这应该足以删除一个文件。
如果您有任何关于如何解决这个问题的提示,我会非常感激。 非常感谢你提前。