Fedora 5 아파치 2.2.2에서 mod_url 설치 문제

lightoml의 이미지

페도라 5에서 아파치 2.2.2 돌리고 있습니다.

주소창에 한글(euc-kr)을 사용하고 싶어서

mod_url 모듈을 설치하려고 하는데, 잘 안되네요..

mod_url.c 소스파일은 ftp://ftp.oops.org/pub/oops/apache/mod_url/apache2/

에서 가져왔구요.. 소스파일 255번째 라인에서 다음을 수정하라고 해서 수정한 다음

- s_enc = cfg->client_encoding ? cfg->client_encoding : DEFAULT_CLIENT_ENCODING;
+ c_enc = cfg->client_encoding ? cfg->client_encoding : DEFAULT_CLIENT_ENCODING;

apxs -i -a -c mod_url.c 으로 컴파일 했습니다.

과정상 문제는 없어보이는데 여전히 한글 주소창을 입력하면

Not Acceptable

An appropriate representation of the requested resource /????¸¸?­/ could not be found on this server.
Apache/2.2.2 (Fedora) Server at Port 80

이렇게 나오네요..

httpd -l 로 모듈이 올라왔는지 확인해보니 안 올라왔네요..
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

이렇게 나옵니다..

혹시 왜 그런지 아시는 분 있나요? 이제 제발 삽질은 그만하고 싶습니다..ㅠㅠ

wkpark의 이미지

http -l이랑 상관 없습니다. 이것은 compiled in(컴파일되어 내장된) 모듈의 나열입니다. mod_so.c가 들어가 있으므로 mod_url.c (mod_url.o를) 모듈로 적용할 수 있습니다.

mod_url.so가 제대로 활성화 되었는지 확인해보세요. error_log를 보면 아실 수 있습니다.
----

LoadModule  redurl_module   modules/mod_url.so
 
...
 
<IfModule mod_url.c>
  CheckURL On
  ServerEncoding EUC-KR
  ClientEncoding UTF-8
</IfModule>
...

----
주소창에 한글을 입력을 하면 error_log에 mod_url관련 메시지가 남습니다.

온갖 참된 삶은 만남이다 --Martin Buber

lightoml의 이미지

우선 답변 감사드립니다.

mod_url로 되어 있는 줄은 아래 것 밖에 없네요..

mod_url configuration: ServerEncoding unspecified, ClientEndoding unspecified

주소창에 한글을 입력해봐도 새로운 메세지가 추가되지는 않고요..

기본적으로 httpd.conf에 다음 라인은 추가했습니다.

LoadModule redurl_module modules/mod_url.so

...

CheckURL On ServerEncoding EUC-KR ClientEncoding UTF-8

...

만약 mod_url.so가 제대로 활성화 안되었다면 어떻게 조치해야 하나요?

wkpark의 이미지

모듈은 제대로 로딩이 됐으나.. mod_url 옵션이 제대로 먹히지 않고 있습니다.

온갖 참된 삶은 만남이다 --Martin Buber

lightoml의 이미지

아무래도 한글로 입력된 것을 거부하는 것 같은데요..

HTTP 오류 406 - 허용할 수 없음
Internet Explorer

위에 오류와 관련된 것 같습니다..

이 오류 해결하려면 어떻게 하는지 도무지 모르겠네요..

wkpark의 이미지

firefox로는 해보셨는지요? error_log에는 모두 정상적으로 나오나요?

온갖 참된 삶은 만남이다 --Martin Buber

lightoml의 이미지

firefox에서는 다음같은 에러메세지가 나오고요.. 탭 title에는 406 Not Acceptable 이라고 나오네요..

Not Acceptable

An appropriate representation of the requested resource ¿???³²??/ could not be found on this server.
Apache/2.2.2 (Fedora) Server at Port 80

그리고 error_log에서는

mod_security: Access denied with code 406. Error parsing multipart
parameters: Error normalising parameter value: Invalid Unicode encoding: invalid byte value [severity "EMERGENCY"]

라고 나오네요.. 한글 인코딩 문제인 것 같은데 잘 모르겠습니다..

lightoml의 이미지

결국 error_log 가 도움이 되었네요.. wkpark님 도움 정말 감사드립니다..

mod_security.conf 에서

SecFilterCheckUnicodeEncoding On <- 이것이 문제였습니다.

이것을

SecFilterCheckUnicodeEncoding Off 로 수정해주니 문제 없이 잘되네요..

아무튼 여러 조언들 정말 감사합니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.