웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
아래 pai님 도메인셋팅 강좌 세부파일들 예제 :)
2002.03.06 07:52
1. /etc/named.conf 에 추가하실내용.
zone "pai.com" IN {
type master;
file "pai.zone";
};
2. /usr/local/apache/conf/httpd.conf 버츄얼호스팅
네임서버 설정부분에 해당되는듯;;
Include conf/vhosts/virtualhost.db
<VirtualHost xxx.xxx.xxx.xxx>(ip주소 -_-;;)
ServerAdmin master@pai.com
DocumentRoot /home/pai/html(계정디렉토리경로)
ServerName pai.com
</VirtualHost>
아무튼 이런 ;; 라인을 추가;;
3. zone파일의 설정;(/var/named/pai.zone)
@ IN SOA ns.pai.com. root.pai.com. (
2001101502 ;Serial
21600 ;Refresh( 6hours)
1800 ;Retry( 30minutes)
1209600 ;Expire( 14days)
43200 ) ;Minimun( 1/2day)
IN NS ns.pai.com.
IN MX 10 mail
;host address
mail IN A ***.***.***.***(서버의ip주소)
ns IN A ***.***.***.***(서버의ip주소)
;aliases
www IN A ***.***.***.***(서버의ip주소)
@ IN A ***.***.***.***(서버의ip주소)
ftp IN CNAME @
4. /usr/local/apache/conf/vhosts/virtualhost.db 버추얼호스트파일에 추가하기 =_=;
<VirtualHost pai.com>
ServerAdmin master@pai.com
DocumentRoot /home/pai/html
ServerName www.pai.com
ErrorLog /var/log/httpd/pai.com-error_log
CustomLog /var/log/httpd/pai.com-access_log common env=!image
</VirtualHost>
5. /etc/mail/local-host-names 에 도메인추가
이부분은 그냥 pai.com을 추가만해주시면됨;
6. /etc/mail/virtusertable 에 master@pai.com추가
master@pai.com pai(계정아이디)
7. 샌드메일 및 아파치 =_= 네임서버 몽땅 재실행 이히 +_+
쉘상에서 아래 명령 입력 +_+)/
/etc/rc.d/init.d/sendmail restart
/etc/rc.d/init.d/named restart
/usr/local/apache/bin/apachectl restart
저도 아직 초보라 잘모르지만;;
아래 코멘트보니깐 어렵다는분들이 계셔서 조금쉬울까해서 =_= 올립니다 'ㅡ'*
zone "pai.com" IN {
type master;
file "pai.zone";
};
2. /usr/local/apache/conf/httpd.conf 버츄얼호스팅
네임서버 설정부분에 해당되는듯;;
Include conf/vhosts/virtualhost.db
<VirtualHost xxx.xxx.xxx.xxx>(ip주소 -_-;;)
ServerAdmin master@pai.com
DocumentRoot /home/pai/html(계정디렉토리경로)
ServerName pai.com
</VirtualHost>
아무튼 이런 ;; 라인을 추가;;
3. zone파일의 설정;(/var/named/pai.zone)
@ IN SOA ns.pai.com. root.pai.com. (
2001101502 ;Serial
21600 ;Refresh( 6hours)
1800 ;Retry( 30minutes)
1209600 ;Expire( 14days)
43200 ) ;Minimun( 1/2day)
IN NS ns.pai.com.
IN MX 10 mail
;host address
mail IN A ***.***.***.***(서버의ip주소)
ns IN A ***.***.***.***(서버의ip주소)
;aliases
www IN A ***.***.***.***(서버의ip주소)
@ IN A ***.***.***.***(서버의ip주소)
ftp IN CNAME @
4. /usr/local/apache/conf/vhosts/virtualhost.db 버추얼호스트파일에 추가하기 =_=;
<VirtualHost pai.com>
ServerAdmin master@pai.com
DocumentRoot /home/pai/html
ServerName www.pai.com
ErrorLog /var/log/httpd/pai.com-error_log
CustomLog /var/log/httpd/pai.com-access_log common env=!image
</VirtualHost>
5. /etc/mail/local-host-names 에 도메인추가
이부분은 그냥 pai.com을 추가만해주시면됨;
6. /etc/mail/virtusertable 에 master@pai.com추가
master@pai.com pai(계정아이디)
7. 샌드메일 및 아파치 =_= 네임서버 몽땅 재실행 이히 +_+
쉘상에서 아래 명령 입력 +_+)/
/etc/rc.d/init.d/sendmail restart
/etc/rc.d/init.d/named restart
/usr/local/apache/bin/apachectl restart
저도 아직 초보라 잘모르지만;;
아래 코멘트보니깐 어렵다는분들이 계셔서 조금쉬울까해서 =_= 올립니다 'ㅡ'*