mod_speling를 이용한다. 대부분 기본으로 설치되어 있으니 옵션만 설정하면 된다. 다음과 같이 해보자.

 

CheckSpelling on

 

예를 들어 나는 VirtualHost로 사이트를 구성하고 있기 때문에 아래와 같이 특정 디렉터리만 대소문자 구분하지 않게 설정했다.

 

<VirtualHost...>

  <Directory ...>

    CheckSpelling on

  </Directory>

</VirtualHost>

 

 

아래는 아파치 문서(http://httpd.apache.org/docs/2.2/mod/mod_speling.html)에 나와있는 spelling 모듈은 사용할 때 알아야 할 점들이다.

 

  • the directory scan which is necessary for the spelling correction will have an impact on the server's performance when many spelling corrections have to be performed at the same time.
  • the document trees should not contain sensitive files which could be matched inadvertently by a spelling "correction".
  • the module is unable to correct misspelled user names (as in http://my.host/~apahce/), just file names or directory names.
  • spelling corrections apply strictly to existing files, so a request for the <Location /status> may get incorrectly treated as the negotiated file "/stats.html".

 

광범위하게 이 모듈을 사용할 경우 서버 성능에 영향을 줄 수도 있을 것 같고, 중요한 파일의 경우는 사용하지 않는 것이 좋을 것 같다. 또한 이 모듈은 301 permanent redirection 응답을 통해 파일 대소문자를 교정하므로 한번 클라이언트에게 전송된 수정된 내용을 쉽게 바꿀 수 없어 파일이름의 수정이 잦을 경우 신중해야 할 것 같다.

+ Recent posts