본문 바로가기

Linux Server 구축

Apache Webserver - httpd.conf - Section 2: 'Main' server configuration Apache HTTP Server Version 2.2에 대한 자세한 정보 : http://httpd.apache.org/docs/2.2/ ----------------------------------------------------------------------------------------------------- Section 2 : 'Main' server configuration Section 2에서는 아피치의 주 서버가 사용할 값들을 설정한다. 에 정의된 가상호스트들에서 지정하지 않는 것은 여기서 지정된 값이 기본값으로 적용된다. 또한 여기서 지정하는 값을 각 내에도 지정할 수 있으며 이경우엔 각내에서 지정한 값이 우선적용된다.  ---------------------------------.. 더보기
Apache WebServer - httpd.conf - Section 1: Global Environment Apache HTTP Server Version 2.2에 대한 자세한 정보 : http://httpd.apache.org/docs/2.2/ ----------------------------------------------------------------------------------------------------- httpd.conf 파일은 크게 세부분으로 나누어져 있다. Section 1: Global Environment - 아파치 전체적인 영향이 미치는 설정 Section 2: 'Main' server configuration - 주 서버에 대한 설정 Section 3: Virtual Hosts - 가상 호스트에 대한 설정 자, 그럼 이제부터 이 아파치웹서버의 모든 환경을 설정하는 아파치 환경.. 더보기
Apache WebServer - Virtual Host - Name-based Virtual Host 참고사항 : http://bban2.tistory.com/134 ----------------------------------------------------------------------------------------------------- Virtual Host - 가상 호스트를 지정한다. IP를 입력한다. ServerAdmin webmaster@dummy-host.example.com - 관리자의 메일주소를 입력한다. DocumentRoot /www/docs/dummy-host.example.com - 웹문서 지정 디렉토리 ServerName dummy-host.example.com - 호스트 네임 지정 ErrorLog logs/dummy-host.example.com-e.. 더보기
Apache WebServer 설정 Section 2 : 'Main' server configuration 참고사항 : http://bban2.tistory.com/133 ------------------------------------------------------------------------------------------- 1. 개인 사용자들의 홈페이지 디렉토리를 설정하는 방법 1-1. Apache 환경설정파일 설정 - 참고 개인 사용자들의 용량 및 게시물의 제한은 quota를 이용해서 설정한다. [root@localhost conf]# pwd /etc/httpd/conf [root@localhost conf]# vi httpd.conf 351 352 # 353 # UserDir is disabled by default sinc.. 더보기
Apache WebServer 구축 Web Server 란? - http 프로토콜을 이용한 클라이언트 서버모델로 웨베이지가 들어있는 파일을 사용자에게 제공하는 서비스이다. Apache의 장점 - Open Source - 꾸준한 버그패치로 인한 안정성 - 다양한 OS 지원 - 다양한 모듈 및 API 지원 ----------------------------------------------------------------------------------------------------- Apache WebServer 구축 1. Apache WebServer를 구축하기 위해 패키지 설치 확인 [root@localhost]# rpm -qa | grep httpd httpd-manual-2.2.3-11.el5_1.centos.3 httpd-2.2.3.. 더보기
보조네임서버구축 (Secondary Name Server) 주네임서버 : 10.10.33.100 보조네임서버 : 10.10.33.2 보조네임서버에서의 설정 1. /var/named/chroot/var/named 폴더의 퍼미션 수정 # pwd /var/named/chroot/var/named #ls -ld drwxr-x--- 4 root named 4096 12월 11 15:31 . #chmod 770 . - 디렉토리에 쓰기 퍼미션을 추가 # ls -ld drwxrwx--- 4 root named 4096 12월 11 15:31 . - 디렉토리에 퍼미션을 추가해 주어야 주네임서버에서 읽어온 파일을 보조네임서버에서 파일을 생성할 수 있다. -----------------------------------------------------------------------.. 더보기
DNS 도메인 추가2 NS Server을 다음과 같이 되도록 설정하시오. Domain IP NS server3.co.kr 10.10.33.3 server3.co.kr www.server3.co.kr 10.10.33.3 server3.co.kr centos3.co.kr 192.168.33.3 centos3.co.kr www.centos3.co.kr 192.168.33.3 centos3.co.kr 1. IP Alias로 IP를 부여해준다. - 참고 DNS 서버는 IP의 정보만 가지고 있으면 되므로 실제적으로 IP Alias 를 안해줘도 된다. PING을 해보려면 IP Alias를 해주면 된다. # ifconfig eth0:0 192.168.33.3 netmask 255.255.255.0 broadcast 192.168.255.2.. 더보기
DNS 도메인 추가1 DNS Server에 linux.server3.co.kr 을 추가하시오. 1. DNS의 환경설정파일 # vi /etc/named.rfc1912.zones - 이 파일에 아래의 내용을 추가한다. zone "server3.co.kr" IN { type master; file "linux.server3.zone"; allow-update { none; }; }; zone "33.10.10.in-addr.arpa" IN { type master; file "linux.server3.rzone"; allow-update { none; }; }; -----------------------------------------------------------------------------------------------.. 더보기
DNS 관련 명렁어 네임서버 프로세스 동작확인 #ps aux | grep named named 11192 0.0 0.3 49792 3404 ? Ssl 11:16 0:00 /usr/sbin/named -u named -c /etc/named.caching-nameserver.conf -t /var/named/chroot root 11433 0.0 0.1 6080 1264 pts/1 S+ 12:29 0:00 vi /etc/named.caching-nameserver.conf root 11532 0.0 0.0 5188 748 pts/2 S+ 12:41 0:00 grep named #netstat -nat Active Internet connections (servers and established) Proto Recv-Q Sen.. 더보기
DNS(Domain Name System) Server 구축 DNS Server 구축 1. DNS Server를 구축하기 위해 필요한 패키지를 다운 및 설치한다. bind-9.3.4-6.P1.el5.i386.rpm bind-chroot-9.3.4-6.P1.el5.i386.rpm bind-libs-9.3.4-6.P1.el5.i386.rpm bind-utils-9.3.4-6.P1.el5.i386.rpm caching-nameserver-9.3.4-6.P1.el5.i386.rpm 패키지 설치 확인 [root@localhost ~]# rpm -qa | grep bind bind-9.3.4-6.0.2.P1.el5_2 ypbind-1.19-8.el5 bind-libs-9.3.4-6.0.2.P1.el5_2 bind-chroot-9.3.4-6.0.2.P1.el5_2 bind-u.. 더보기