Skip to content

조회 수 16291 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
제  목 : Apache의 Indexes된 페이지에서 한글표시
작성자 : 좋은진호(truefeel, http://coffeenix.net/ )
작성일 : 2008.3.25(화)
정리일 : 2008.4.9(수)

Apache 설정시 가장 먼저 없애는 설정중의 하나가 Options Indexes 이다. Indexes 설정이 되어 있고 해당 디렉토리에 index.html, index.php 등 DirectoryIndex에서 지정한 파일이 없다면, 해당 디렉토리의 파일 목록이 나열된다. 의도적으로 파일목록을 보여줘야하는 경우가 아니면, 보안을 위해서 빼주는게 좋다. http://www.ibiblio.org/pub/ 은 파일 제공등을 목적으로 Indexes 로 설정된 경우이다.

 
<Directory "...">
        Options Indexes -MultiViews
</Directory>
 
apache_indexes.png

주위 분이 Indexes를 필요해서 설정했는데, 한글파일이나 디렉토리가 깨진다는 말씀을 하셨다. Indexes를 사용하지 않는 관계로 몇가지 테스트와 설정을 찾아본 결과 apache 문서에서 답을 찾았다.



Apache Module mod_autoindex
http://httpd.apache.org/docs/2.2/en/mod/mod_autoindex.html#indexoptions

 
Charset=character-set (Apache 2.0.61 and later)
    The Charset keyword allows you to specify the character set of the generated page. The default is either ISO-8859-1 or UTF-8, depending on whether the underlying file system is unicode or not.
    Example:

    IndexOptions Charset=UTF-8
 


Apache 2.0.61 이후(2.2.x포함)에서 문자셋을 지정하는 설정이 추가었으며, 설정하지 않을 경우 ISO-8859-1 또는 UTF-8로 된다. 테스트결과 ISO-8859-1 으로 표시되었다. 따라서 EUC-KR로 인코딩된 파일명은 다음과 같은 설정을 추가해주면 된다.

 
IndexOptions Charset=euc-kr
 
apache_indexes_charset.png



<설정예제>
<VirtualHost *:80>
     DocumentRoot /home/source
     ServerName source.ysy2080.com
<Directory "/home/source">
     Options Indexes
     AllowOverride Indexes Authconfig
     IndexOptions FancyIndexing VersionSort FoldersFirst NameWidth=*:80
     Order allow,deny
     Allow from all
     IndexOptions Charset=euc-kr
</Directory>
</VirtualHost>



출처 : coffeenix.net

  1. h264 스트리밍 서버 구축(리눅스,아파치) (실시간 아님, ...

    Date2012.08.13 ByADMINPLAY Views17176
    Read More
  2. Apache Worker 방식의 이해 및 설정법

    Date2012.01.16 ByADMINPLAY Views16955
    Read More
  3. 서비스 동시접속 인원알기

    Date2008.10.07 ByADMINPLAY Views16892
    Read More
  4. 웹페이지에서 한글이 깨지는 현상 막기

    Date2009.01.03 ByADMINPLAY Views16528
    Read More
  5. 아파치웹서버 모니터링하기

    Date2009.03.17 ByADMINPLAY Views16476
    Read More
  6. 웹 사이트 속도측정

    Date2009.03.04 ByADMINPLAY Views16462
    Read More
  7. Apache의 Indexes된 페이지에서 한글표시

    Date2009.05.07 ByADMINPLAY Views16291
    Read More
  8. apache2 worker 방식 client 수치 설정법

    Date2009.11.26 ByADMINPLAY Views16069
    Read More
  9. 아파치 특정폴더에 암호걸기

    Date2008.10.08 ByADMINPLAY Views16032
    Read More
  10. 사이트가 느려지는 현상 점검

    Date2008.10.08 ByADMINPLAY Views15933
    Read More
  11. 아파치 모듈 내용

    Date2008.12.10 ByADMINPLAY Views15905
    Read More
  12. Apache 최적화

    Date2008.11.11 ByADMINPLAY Views15769
    Read More
  13. 매일 자정에 트래픽 초기화 하기

    Date2009.07.18 ByADMINPLAY Views15668
    Read More
  14. 아파치 웹서버 사용 시 무단 링크 방지법

    Date2009.04.03 ByADMINPLAY Views15592
    Read More
  15. 64bit 시스템에 ssl 설치 후 실행 시 X509_free 오류

    Date2008.10.07 ByADMINPLAY Views15507
    Read More
  16. RedirectMatch (도메인포워딩)

    Date2009.01.23 ByADMINPLAY Views15435
    Read More
  17. Apache 버전확인

    Date2008.12.23 ByADMINPLAY Views15428
    Read More
  18. 초간단 웹 페이지 로딩시간 체크법

    Date2009.03.17 ByADMINPLAY Views15350
    Read More
  19. 리눅스 APM 소스설치시 에러에 대한 대처

    Date2009.01.30 ByADMINPLAY Views15132
    Read More
  20. 아파치 데몬이 안 뜰경우

    Date2009.11.26 ByADMINPLAY Views14874
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234