Description:
Remote IP에 대한 국가, ISP 정보를 환경 변수를 생성하며, rewirte rule 등에서 사용할 수 있다.
Features:
모듈 로딩 및 설정: /etc/httpd/conf.d/krisp.conf
생성된 환경 변수는 httpd.conf 및 PHP등의 언어에서 web server 환경 변수로 호출이 가능 함.
Rewirte Rule exmaple:
RewriteEngine On
RewriteCond expr "%{KRISP_COUNTRY_CODE} -strmatch 'KR'"
#RewriteCond "%{KRISP_COUNTRY_CODE}" "^KR$"
RewriteRule /.* /kr$0 [L]
Reference:
Dependencies:
Sub Packages: