> For the complete documentation index, see [llms.txt](https://joungkyun.gitbook.io/annyung-3-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://joungkyun.gitbook.io/annyung-3-user-guide/annyung3-package-catalog/annyung3-core-packages/pkg-core-httpd-krisp.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
