# httpd-krisp

## 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:

* <http://svn.oops.org/wsvn/Apache.mod_krisp/trunk/apache2/README>

## Dependencies:

* [libkrisp](/annyung-3-user-guide/annyung3-package-catalog/annyung3-core-packages/pkg-core-libkrisp.md)
* [httpd](/annyung-3-user-guide/annyung3-package-catalog/annyung3-base-packages/pkg-base-httpd.md)

## Sub Packages:

* None

## Related Packages:

* [perl-KRISP](/annyung-3-user-guide/annyung3-package-catalog/annyung3-core-packages/pkg-core-perl-krisp.md)
* [php-krisp](/annyung-3-user-guide/annyung3-package-catalog/annyung3-core-packages/pkg-core-php-krisp.md)
* [php-pecl-krisp](/annyung-3-user-guide/annyung3-package-catalog/annyung3-core-packages/pkg-core-php-krisp.md)
* [python-krisp](/annyung-3-user-guide/annyung3-package-catalog/annyung3-core-packages/pkg-core-python-krisp.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://joungkyun.gitbook.io/annyung-3-user-guide/annyung3-package-catalog/annyung3-core-packages/pkg-core-httpd-krisp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
