본문 바로가기

Storage&CDN/CloudFront

AWS CloudFront Apache 원본 연동(mod_security2)

<IfModule mod_security2.c>

   SecRule &REQUEST_HEADERS_NAMES:origin-token "@eq 0" \

   "id:52,log,deny,status:403,t:lowercase,msg:'CloudFront Auth failed origin-token'"

</IfModule>


cf origin-token 값을 통한 apache 원본 제어(헤더 Key 기준)