본문 바로가기

22

Apache#13 - 브라우저(클라이언트) 캐시 설정 mod_expires을 이용해서 cache-control 및 max-age 설정하는 방법을 공유드립니다. 해당 설정을 통해 브라우저 캐시설정이 가능합니다. 브라우저 캐시 설정으로 이미 받은 파일 특정기간 동안 다시 호출하지 않게 되어 트래픽이 줄어들게 됩니다. 공식 가이드 문서 : https://httpd.apache.org/docs/2.4/ko/mod/mod_expires.html mod_expires - Apache HTTP Server Version 2.4 httpd.apache.org ExpiresActive On## 사용여부 ExpiresByType application/javascript "access plus 7 days" ## 자바스크립트 타입에 대해서 7일동안 캐싱 2021. 10. 22.
Apache#12 - Cloudflare Client IP 로그 찍기 이전에 X-forward-for 헤더를 이용해서 클라이언트 로그 찍는 방법을 소개해 드렸습니다. 2021.10.22 - [분류 전체보기] - Apache#11 - remote/real IP 정보 찾기 (X-Forwarded-For) Apache#11 - remote/real IP 정보 찾기 (X-Forwarded-For) Apache 앞에 LB 등 Proxy 서비스를 해주는 어플리케이션이 있을 경우 클라이언트 IP를 확인하는 방법입니다. mod_remoteip 모듈이 필요합니다. 공식 가이드 : https://httpd.apache.org/docs/2.4/mod/mod_remoteip.. gntpapa.tistory.com conf/TrustIP에 Cloudflare IPv4 정보를 추가 후 서비스 재시.. 2021. 10. 22.
Apache#11 - remote/real IP 정보 찾기 (X-Forwarded-For) Apache 앞에 LB 등 Proxy 서비스를 해주는 어플리케이션이 있을 경우 클라이언트 IP를 확인하는 방법입니다. X-Forwarded-For 헤더를 이용하여 사용자 IP를 구할 수 있으며, mod_remoteip 모듈이 필요합니다. 공식 가이드 : https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html mod_remoteip - Apache HTTP Server Version 2.4 Apache Module mod_remoteip Summary This module is used to treat the useragent which initiated the request as the originating useragent as identified by ht.. 2021. 10. 22.
Apache#10 - gzip 설정 http 대역폭/트래픽 절감을 위해서 압축 설정을 하는 경우가 있습니다. 압축관련해서는 gzip, br 등 여러가지 방식이 있습니다. https://ko.wikipedia.org/wiki/HTTP_%EC%95%95%EC%B6%95 HTTP 압축 - 위키백과, 우리 모두의 백과사전 HTTP 압축(HTTP compression)은 전송 속도와 대역폭 이용을 개선하기 위해 웹 서버와 웹 브라우저에 빌드되는 기능이다.[1] HTTP 데이터는 서버로부터 전송되기 전에 압축된다. 호환 브라우저들은 유효 ko.wikipedia.org 이번에는 gzip 설정에 대해서 공유드립니다. - AddOutputFilterByType 으로 압축할 Type 지정 - DeflateCompressionLevel 로 압축 레벨 지정 (.. 2021. 10. 20.