웹서버 (3) 썸네일형 리스트형 Apache 설정 (2.2.0 version) Caution httpd.conf 에는 기본적인 내용만 들어 있고, conf/extra 디렉토리에 추가적인 내용들이 분류별로 나와 있다. -rw-r--r-- 1 root root 2845 Dec 21 19:31 httpd-autoindex.conf -rw-r--r-- 1 root root 1673 Dec 21 19:31 httpd-dav.conf -rw-r--r-- 1 root root 2344 Dec 21 19:31 httpd-default.conf -rw-r--r-- 1 root root 1103 Dec 21 19:31 httpd-info.conf -rw-r--r-- 1 root root 5040 Dec 21 19:31 httpd-languages.conf -rw-r--r-- 1 root root 8.. Apache 소스 설치 (2.0.52 version) 1. download : www.apache.org 2. tar zxpf /usr/local/src/httpd-2.0.52; cd httpd-2.0.52 3. ./configure --prefix=/usr/local/apache-2.0.52 --enable-rule=SHARED_CORE --enable-so 4. make 5. make install 6. cd /usr/local 7. ln -s apache-2.0.52 apache 8. vi ./httpd/conf/httpd.conf ServerAdmin you@example.com : 관리자 메일주소 ServerName *:80 -> yourdomain : 주석 활성화 CustomLog logs/access_log common : 주석 활성화 Cust.. Apache 설정 (httpd.conf) 1. 특정 디렉토리 인증 처리 1) below AccessFileName .htaccess in httpd.conf AuthName "Displayed Syntax" AuthType basic AuthUserFile AuthenticationFile require valid-user 2) make file for authentication /usr/local/apache/bin/htpasswd htpasswd -c fileName userName 2. 에러 페이지 변경 ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var -> change dir/file & disable notes 3. 특정 프로그램의 허용 막기 1) in httpd.conf Order allow,de.. 이전 1 다음