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. 사용자 인증

    Date2009.11.26 ByADMINPLAY Views14017
    Read More
  2. squid 로 웹서버 가속하기..---== 강추 ==---

    Date2009.11.26 ByADMINPLAY Views18254
    Read More
  3. 아파치 데몬이 안 뜰경우

    Date2009.11.26 ByADMINPLAY Views14874
    Read More
  4. apache2 worker 방식 client 수치 설정법

    Date2009.11.26 ByADMINPLAY Views16069
    Read More
  5. rewrite 모듈을 이욜한 서브도메인으로 홈페이지 운영하기

    Date2009.11.26 ByADMINPLAY Views14217
    Read More
  6. apache log에 그림이미지 파일 로그 안남기기

    Date2009.11.26 ByADMINPLAY Views14666
    Read More
  7. SSL 인증서 발급 후 SSL mode 시작시 두 개의 패스워드 입...

    Date2009.10.15 ByADMINPLAY Views14176
    Read More
  8. 브라우저 접속 제한하기

    Date2009.09.30 ByADMINPLAY Views14691
    Read More
  9. 아파치 컴파일 에러(apr-util) configure: error: cannet ...

    Date2009.08.08 ByADMINPLAY Views19574
    Read More
  10. APM 기본설치후 아파치 실행에러 httpd: Could not determ...

    Date2009.08.08 ByADMINPLAY Views21875
    Read More
  11. Apache Make시 /usr/lib/libexpat.so: could not read sym...

    Date2009.08.07 ByADMINPLAY Views17943
    Read More
  12. make[2]: *** [htpasswd] 오류 1 , make[1]: *** [all-rec...

    Date2009.08.07 ByADMINPLAY Views27101
    Read More
  13. Unclean shutdown of previous Apache run?

    Date2009.08.05 ByADMINPLAY Views21795
    Read More
  14. apache 에서 euc-kr홈페이지를 포팅할때 화면이안나올경우

    Date2009.07.18 ByADMINPLAY Views14217
    Read More
  15. 매일 자정에 트래픽 초기화 하기

    Date2009.07.18 ByADMINPLAY Views15668
    Read More
  16. Apache 웹서버 MaxClient 최대값 조정을 위한 C & CPP 플...

    Date2009.06.21 ByADMINPLAY Views13815
    Read More
  17. Tomcat 4 과 Apache 2 연동

    Date2009.06.06 ByADMINPLAY Views14616
    Read More
  18. [자료] 웹사이트 성능개선 위한 커널 튜닝 사례

    Date2009.05.10 ByADMINPLAY Views13767
    Read More
  19. [LINUX] Apache 2.2 + mod jk 1.2 + Tomcat 5.x 연동

    Date2009.05.07 ByADMINPLAY Views21037
    Read More
  20. Apache의 Indexes된 페이지에서 한글표시

    Date2009.05.07 ByADMINPLAY Views16291
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234