{"id":2045,"date":"2019-09-06T21:17:37","date_gmt":"2019-09-06T14:17:37","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=2045"},"modified":"2019-09-15T10:34:42","modified_gmt":"2019-09-15T03:34:42","slug":"cai-dat-mod_security-tren-cyberpanel","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/cai-dat-mod_security-tren-cyberpanel\/","title":{"rendered":"C\u00e0i \u0111\u1eb7t Mod_Security tr\u00ean CyberPanel"},"content":{"rendered":"<p>ModSecurity , \u0111\u00f4i khi \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 Modsec , l\u00e0 m\u1ed9t t\u01b0\u1eddng l\u1eeda \u1ee9ng d\u1ee5ng web ngu\u1ed3n m\u1edf (WAF). \u0110\u01b0\u1ee3c thi\u1ebft k\u1ebf ban \u0111\u1ea7u nh\u01b0 m\u1ed9t m\u00f4-\u0111un cho M\u00e1y ch\u1ee7 HTTP Apache , n\u00f3 \u0111\u00e3 ph\u00e1t tri\u1ec3n \u0111\u1ec3 cung c\u1ea5p m\u1ed9t lo\u1ea1t c\u00e1c kh\u1ea3 n\u0103ng l\u1ecdc y\u00eau c\u1ea7u v\u00e0 ph\u1ea3n h\u1ed3i c\u1ee7a Giao th\u1ee9c http c\u00f9ng v\u1edbi c\u00e1c t\u00ednh n\u0103ng b\u1ea3o m\u1eadt kh\u00e1c tr\u00ean m\u1ed9t s\u1ed1 n\u1ec1n t\u1ea3ng kh\u00e1c nhau bao g\u1ed3m M\u00e1y ch\u1ee7 HTTP Apache ,\u00a0 Microsoft IIS v\u00e0 NGINX. \u0110\u00e2y l\u00e0 m\u1ed9t ph\u1ea7n m\u1ec1m mi\u1ec5n ph\u00ed \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh theo gi\u1ea5y ph\u00e9p Apache 2.0.<\/p>\n<p>M\u1eb7c \u0111\u1ecbnh CyberPanel kh\u00f4ng c\u00e0i \u0111\u1eb7t s\u1eb5n, tuy nhi\u00ean b\u1ea1n c\u00f3 th\u1ec3 b\u1eadt theo h\u01b0\u1edbng d\u1eabn sau:<\/p>\n<p>Truy c\u1eadp CyberPanel &gt;&gt; M\u00e1y ch\u1ee7 &gt;&gt; B\u1ea3o m\u1eadt &gt;&gt; ModSecurity Conf<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.06.25.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-2046\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.06.25.png\" alt=\"\" width=\"252\" height=\"583\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.06.25.png 252w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.06.25-130x300.png 130w\" sizes=\"(max-width: 252px) 100vw, 252px\" \/><\/a><\/p>\n<p>Nh\u1ea5n &#8220;C\u00e0i \u0111\u1eb7t ngay&#8221; \u0111\u1ec3 CyberPanel c\u00e0i \u0111\u1eb7t<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.07.03.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-2047\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.07.03.png\" alt=\"\" width=\"1224\" height=\"641\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.07.03.png 1224w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.07.03-300x157.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.07.03-1024x536.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.07.03-768x402.png 768w\" sizes=\"(max-width: 1224px) 100vw, 1224px\" \/><\/a><\/p>\n<p>Sau khi c\u00e0i \u0111\u1eb7t ho\u00e0n t\u1ea5t, c\u1eeda s\u1ed5 c\u00e0i \u0111\u1eb7t s\u1ebd chuy\u1ec3n sang c\u00e1c c\u1ea5u h\u00ecnh m\u1eb7c \u0111\u1ecbnh Mod_Security, l\u01b0u l\u1ea1i \u0111\u1ec3 \u00e1p d\u1ee5ng c\u00e0i \u0111\u1eb7t<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.08.33.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-2048\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.08.33.png\" alt=\"\" width=\"1224\" height=\"1088\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.08.33.png 1224w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.08.33-300x267.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.08.33-768x683.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-06-at-21.08.33-1024x910.png 1024w\" sizes=\"(max-width: 1224px) 100vw, 1224px\" \/><\/a><\/p>\n<p>Gi\u1ea3i th\u00edch c\u00e1c c\u1ea5u h\u00ecnh:<\/p>\n<p><strong>ModSecurity Status<\/strong><\/p>\n<p>\u0110\u00e2y l\u00e0 t\u00f9y ch\u1ecdn duy nh\u1ea5t \u0111\u01b0\u1ee3c \u0111i\u1ec1u khi\u1ec3n b\u1edfi m\u00e1y ch\u1ee7 web OpenLiteSpeed, khi b\u1ea1n t\u1eaft t\u00f9y ch\u1ecdn n\u00e0y, kh\u00f4ng c\u00f3 g\u00ec li\u00ean quan \u0111\u1ebfn ModSecurity s\u1ebd ho\u1ea1t \u0111\u1ed9ng.<\/p>\n<p><strong>SecAuditEngine<\/strong><\/p>\n<p>ModSecurity c\u00f3 th\u1ec3 t\u1ea1o nh\u1eadt k\u00fd m\u1edf r\u1ed9ng cho c\u00e1c y\u00eau c\u1ea7u HTTP trong Audit log , t\u00f9y ch\u1ecdn n\u00e0y cho bi\u1ebft khi n\u00e0o b\u1ea1n c\u1ea7n ghi nh\u1eadt k\u00fd\u00a0 hay kh\u00f4ng. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ecdc th\u00eam chi ti\u1ebft\u00a0\u00a0<a class=\"urlextern\" title=\"https:\/\/github.com\/SpiderLabs\/ModSecurity\/wiki\/Reference-Manual#SecAuditEngine\" href=\"https:\/\/github.com\/SpiderLabs\/ModSecurity\/wiki\/Reference-Manual#SecAuditEngine\" rel=\"nofollow noopener\" target=\"_blank\">\u1edf \u0111\u00e2y<\/a>\u00a0.<\/p>\n<p><strong>SecRuleEngine<\/strong><\/p>\n<p>Cho ph\u00e9p b\u1eadt t\u1eaft ho\u1ea1t \u0111\u1ed9ng c\u1ee7a mod_security<\/p>\n<p><strong>SecDebugLogLevel<\/strong><\/p>\n<p>C\u00e1c m\u1ee9c ghi nh\u1eadt k\u00fd g\u1ee1 l\u1ed7i b\u1ea1n mu\u1ed1n c\u1ea5u h\u00ecnh, 9 l\u00e0 m\u1ee9c ghi nh\u1eadt k\u00fd cao nh\u1ea5t. Th\u00eam chi ti\u1ebft\u00a0\u00a0<a class=\"urlextern\" title=\"https:\/\/github.com\/SpiderLabs\/ModSecurity\/wiki\/Reference-Manual#SecDebugLogLevel\" href=\"https:\/\/github.com\/SpiderLabs\/ModSecurity\/wiki\/Reference-Manual#SecDebugLogLevel\" rel=\"nofollow noopener\" target=\"_blank\">t\u1ea1i \u0111\u00e2y<\/a>\u00a0.<\/p>\n<p><strong>SecAuditLogParts<\/strong><\/p>\n<p>N\u1ebfu `SecAuditEngine` \u0111\u01b0\u1ee3c b\u1eadt, b\u1ea1n c\u00f3 th\u1ec3 quy\u1ebft \u0111\u1ecbnh \u1edf \u0111\u00e2y ph\u1ea7n n\u00e0o c\u1ee7a\u00a0 truy c\u1eadp HTTP m\u00e0 b\u1ea1n mu\u1ed1n gi v\u00e0o audit log, chi ti\u1ebft h\u01a1n\u00a0 <a class=\"urlextern\" title=\"https:\/\/github.com\/SpiderLabs\/ModSecurity\/wiki\/Reference-Manual#SecAuditLogParts\" href=\"https:\/\/github.com\/SpiderLabs\/ModSecurity\/wiki\/Reference-Manual#SecAuditLogParts\" rel=\"nofollow noopener\" target=\"_blank\">\u1edf \u0111\u00e2y<\/a>\u00a0.<\/p>\n<p><strong>SecAuditLogRelevantStatus<\/strong><\/p>\n<p>Li\u00ean quan \u0111\u1ebfn vi\u1ec7c ghi audit log, chi ti\u1ebft h\u01a1n\u00a0 <a class=\"urlextern\" title=\"https:\/\/github.com\/SpiderLabs\/ModSecurity\/wiki\/Reference-Manual#SecAuditLogRelevantStatus\" href=\"https:\/\/github.com\/SpiderLabs\/ModSecurity\/wiki\/Reference-Manual#SecAuditLogRelevantStatus\" rel=\"nofollow noopener\" target=\"_blank\">\u1edf \u0111\u00e2y<\/a>\u00a0.<\/p>\n<p><strong>SecAuditLogType<\/strong><\/p>\n<p>L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 nh\u1eadt k\u00fd c\u00f3 th\u1ec3 ho\u1ea1t \u0111\u1ed9ng, chi ti\u1ebft\u00a0 <a class=\"urlextern\" title=\"https:\/\/github.com\/SpiderLabs\/ModSecurity\/wiki\/Reference-Manual#SecAuditLogType\" href=\"https:\/\/github.com\/SpiderLabs\/ModSecurity\/wiki\/Reference-Manual#SecAuditLogType\" rel=\"nofollow noopener\" target=\"_blank\">\u1edf \u0111\u00e2y<\/a>\u00a0.<\/p>\n<p>B\u1ea1n c\u00f3 th\u1ec3\u00a0 \u0111\u1ec3 m\u1eb7c \u0111\u1ecbnh c\u00e0i \u0111\u1eb7t mod_Security v\u00ec \u0111\u00e2y \u0111\u00e3 l\u00e0 c\u00e1c c\u1ea5u h\u00ecnh c\u01a1 b\u1ea3n ho\u1ea1t \u0111\u1ed9ng cho nhi\u1ec1u m\u00e3 ngu\u1ed3n kh\u00e1c nhau.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ModSecurity , \u0111\u00f4i khi \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 Modsec , l\u00e0 m\u1ed9t t\u01b0\u1eddng l\u1eeda \u1ee9ng d\u1ee5ng web ngu\u1ed3n m\u1edf (WAF). \u0110\u01b0\u1ee3c thi\u1ebft k\u1ebf ban \u0111\u1ea7u nh\u01b0 m\u1ed9t m\u00f4-\u0111un cho M\u00e1y ch\u1ee7 HTTP Apache , n\u00f3 \u0111\u00e3 ph\u00e1t tri\u1ec3n \u0111\u1ec3 cung c\u1ea5p m\u1ed9t lo\u1ea1t c\u00e1c kh\u1ea3 n\u0103ng l\u1ecdc y\u00eau c\u1ea7u v\u00e0 ph\u1ea3n h\u1ed3i c\u1ee7a Giao th\u1ee9c http [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":2048,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[1074],"class_list":["post-2045","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-cyber-panel"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/2045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=2045"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/2045\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/2048"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=2045"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=2045"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=2045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}