\u6709\u4e00\u4e9b\u7a0b\u5f0f\uff0c\u4f8b\u5982Ecshop\uff0c\u9047\u5230apache mod_security\u9019\u500b\u6a21\u7d44\uff0cecshop\u7684\u820a\u7248\u672c\uff0c\u6703\u6709\u4e0d\u76f8\u5bb9\u7684\u60c5\u6cc1\u3002\u9019\u7a2e\u6642\u5019\uff0c\u5982\u679c\u5ba2\u6236\u4e0d\u9858\u610f\u5347\u7d1a\uff0c\u6211\u5fc5\u9808\u63a1\u53d6\u7684\u8655\u7406\u65b9\u5f0f\uff0c\u5c31\u662f\u91dd\u5c0d\u8a72\u5ba2\u6236\u7684\u55ae\u4e00\u7db2\u57df\uff0c\u95dc\u9589apache mod_security<\/p>\n
\u8981\u91dd\u5c0d\u55ae\u4e00\u7db2\u57df\u95dc\u9589apache\u7684mod_security\uff0c\u6839\u64da\u6211\u7684\u6e2c\u8a66\uff0c\u7121\u6cd5\u4f7f\u7528.htaccess\u6a94\u4f86\u505a\uff0c\u6703\u7576\u6389\u3002\u4e00\u5b9a\u8981\u76f4\u63a5\u628a\u76f8\u95dc\u7684\u6307\u4ee4\uff0c\u5beb\u5728apache\u7684config\u6a94\u88e1\u3002\u800ccpanel\/WHM\u7684apache config\u6a94\uff0c\u662f\u914d\u5408GUI\u81ea\u52d5\u751f\u6210\u7684\uff0c\u4e0d\u80fd\u96a8\u4fbf\u4fee\u6539\u3002\u6240\u4ee5\u9019\u500b\u6539\u6cd5\uff0c\u5fc5\u9808\u8003\u616ecpanel\u7684\u6a94\u6848\u914d\u7f6e\u3002\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n
mkdir -p \/usr\/local\/apache\/conf\/userdata\/std\/2\/username\/domain .com<\/wbr><\/wbr><\/strong>\r\n\r\n\u7136\u5f8c\u751f\u6210\u6a94\u6848:\r\n\r\n\/usr\/local\/apache\/conf\/ userdata\/std\/2\/username\/domain .com\/mod_security.conf<\/wbr><\/wbr><\/strong>\r\n\r\n\u5728\u9019\u500b\u6a94\u6848\u4e2d\uff0c\u52a0\u5165:\r\n\r\n<IfModule\u00a0mod_security2.c> SecRuleEngine Off <\/IfModule><\/strong>\r\n\r\n\u5b58\u6a94\r\n\r\n\u7136\u5f8c\uff0c\u57f7\u884c:\r\n\r\n\/scripts\/ensure_vhost_includes --user=username<\/strong><\/pre>\n \u5176\u4e2d\uff0cusername\u662fcpanel\u7684\u4f7f\u7528\u8005\u540d\u7a31\uff0c\u800cdomain.com\u662f\u7db2\u57df\u540d\u7a31\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u6709\u4e00\u4e9b\u7a0b\u5f0f\uff0c\u4f8b\u5982Ecshop\uff0c\u9047\u5230apache mod_security\u9019\u500b\u6a21\u7d44\uff0cecshop\u7684\u820a\u7248\u672c\uff0c\u6703\u6709\u4e0d … \u95b1\u8b80\u5168\u6587 apache mod_security\u95dc\u9589\u55ae\u4e00\u7db2\u57df<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[3,4],"tags":[47,46],"_links":{"self":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/171"}],"collection":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":5,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":649,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/171\/revisions\/649"}],"wp:attachment":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/tags?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}