본문 바로가기

Linux29

[CentOS5.11] 가상 호스트 설정. 가상 호스트 ( Virtual Hosting) 종류 > 이름 기반 가상 호스트 > IP 기반 가상 호스트 > 포트 기반 가상 호스트 > 혼합된 형태 ◇ 이름 기반 가상 호스트 > 가장 광범위 하게 쓰인다. www.daum.net -> /www1/index.html www.paran.com -> /www2/index.html www.yahoo.com -> /www3/index.html # mkdir /www2 /www3 # vi /www2/index.html # vi /www3/index.html 1 2 3 4 5 # /www2/index.html www2 linux113(/www2) # /www3/index.html www3 linux1XX(/www3) cs ⓐ DNS 서버에 등록. [DNS Server.. 2017. 9. 17.
[CentOS5.11] .htaccess 를 이용한 웹 보안. .htaccess란? ○ 참고 사이트( .htaccess 의 기본 개념) http://yojm.net/?p=94 ◇ 실습 # vi /www1/.htaccess 1 2 3 4 AuthName "restricted stuff" AuthType Basic AuthUserFile /etc/httpd/conf/mypasswd require valid-user cs ★ 참고 > /etc/httpd/conf/httpd.conf 파일에 AllowOverride 설정이 되어 있으면, 특정한 웹페이지에 대해서 사용자 인증을 할 수 있다. [ AllowOverride 옵션 설정 ] AuthConfig 인증, 방법, 명령을 사용 할 수 있으며, AuthDBMGroupFile, AuthGroupFile, AuthName, Au.. 2017. 9. 16.
[CentOS5.11] 아파치 웹서버 CGI 설정. CGI(Common Gateway Interface)? > 웹 서버(정보 제공)와 클라이언트(정보 이용) 간에 필요한 정보 교환을 가능하게 해주는 일종의 웹 인터페이스 > 동적 페이지 서비스를 제공하려고 만들어짐 > CGI 제작도구 = PHP, PERL, PYTHON, etc ☆ 참고 사이트 ( CGI 란? ) http://snuet.com/CML/C05/C05_02.html http://sfeg.tistory.com/196 http://www.linux213.example.com --------------------------> /www1/index.html >코드를 요청. http://www.linux213.example.com/cgi-bin/test.cgi -----------> /www1/cgi-.. 2017. 9. 16.
[CentOS5.11] 아파치(Apache) 웹 서버. ★ 아파치 웹 서버에 관련된 파일/디렉토리. /etc/httpd/conf/httpd.conf 아파치 웹서버 주 설정 파일 /etc/httpd/conf.d/*.conf 아파치 웹서버 주 설정 파일에 포함된 하위 설정 파일 /etc/httpd/logs /var/log/httpd/ , 아파치 웹 서버 로그 디렉토리 /etc/httpd/modules /usr/lib/httpd/modules , 아파치 웹 서버 로그 모듈 디렉토리 /etc/httpd/run/httpd.pid /var/run/ , 실행 중인 아파치 데몬의 PID 번호를 저장하는 파일 /etc/mime.types CUPS를 위한 MIME 타입 설명 파일 /etc/rc.d/init.d/httpd 아파치 데몬을 제어할 수 있는 스크립트 /usr/sbin.. 2017. 9. 16.