| 66 번 글의 답장글: Re: (재질문)Re: Re: www.abc.com 과 test.abc.com 을 사용시 |
| 글쓴이: 홍종현
|
글쓴날: 2000년 04월 04일 18:09:18 화(저녁) |
조회: 2191 |
그럼 일반적인 설정을 보여 드리겠습니다.
먼저 named.local입니다.
@ IN SOA localhost. root.localhost. (
2000031601 ;Serial
8H ;Refresh
2H ;Retry
1W ;Expire
1D ) ;minimum
IN NS localhost.
1 IN PTR localhost.
그 다음 210.xxx.xxx.xxx 파일입니다 경로는
/var/named/zone-30.223.210.in-addr입니다.
@ IN SOA webgate21.co.kr. webmaster.webgate21.co.kr. (
1999101530 ;Serial
6H ;Refresh
1800 ;Retry
1209600 ;Expire
1H) ;Minimum
NS webgate21.co.kr.
34 PTR webgate21.co.kr.
34 PTR test.webgate21.co.kr.
34 PTR donghae21.co.kr. <= 동해21 또한 동일한 ip에 할당되었다고
가정했습니다.
그 다음은 zone-webgate21.co.kr입니다.
경로는 /var/named/zone-webgate21.co.kr입니다.
만약 위해서 제시한 동해21경우 zone-donghae21 을 만들어 주시면
됩니다. 자세한 사항은 관련 서적을 참조 하세요.. ^^;
@ IN SOA webgate21.co.kr. webmaster.webgate21.co.kr. (
2000031601 ;Serial
8H ;Refresh
2H ;Retry
1W ;Expire
1D ) ;minimum
IN NS ns.webgate21.co.kr.
webgate21.co.kr MX 10 webgate21.co.kr.
<= 여기에서 보다 세부적인 메일 설정은 다른 참고
서적을 참조하시고
여기에서 제시하는 경우는 호스트 이름이 webgate21.co.kr 일 경우
입니다.
localhost IN A 127.0.0.1
webgate21.co.kr. IN A 210.223.30.34
ns IN A 210.223.30.34
www IN A 210.223.30.34
mail IN A 210.223.30.34
test IN A 210.223.30.34
ftp IN CNAME webgate21.co.kr.
mail IN CNAME webgate21.co.kr.
물론 /etc/named.conf로 바르게 설정 되었겠지요..
자! 이제 named를 다시 시작하시고 제가 답변한 것 처럼 아파치를
설정하시고 해당 디렉토리와 퍼미션을 확인 하신후,
index페이지를 만들어 접속해 보세요...
산이님 제가 혹시 틀렸다면 지적해주세요...
산이님 파이팅!!
[이미숙]님이 남기신 글:
>
>
>
>-------------zone 설정파일입니다
어디를 수정해야 하는지 ---
>
>;
>; Zone file for abc.zone
>;
>;The full file
>;
>@ IN SOA ns.abc.co.kr. webmaster.abc21.co.kr. (
> 2000031601 ;Serial
> 8H ;Refresh
> 2H ;Retry
> 1W ;Expire
> 1D ) ;minimum
>;
> IN NS "abc.co.kr."
> IN A 210.223.30.34
> IN MX 10 mail.webgate21.co.kr. ;primary
>
>;
>localhost IN A 127.0.0.1
>www IN A 210.223.30.34
>ns IN A 210.223.30.34
>ftp IN A 210.223.30.34
>mail IN A 210.223.30.34
>
>
>test IN CNAME @
>;ns IN CNAME @
>;www IN CNAME @
>;ftp IN CNAME @
>
>
>
>
>----apach web설정 파일 입니다 어느 부분에 어떻게
test.abc.com
>적어야 하는지 ...
>
>#--------------------------------MAIN
PART----------------------------------
><VirtualHost 210.223.30.34>
> ServerAdmin webmaster@abc.co.kr
> DocumentRoot /home/abc/public_html
> ServerName www.abc.co.kr
> ErrorLog logs/www.abc.co.kr-error_log
> CustomLog logs/www.abc.co.kr-access_log common
>
>
>
>
> </VirtualHost>
========================================
|
이전글 : (재질문)Re: Re: www.abc.com 과 test.abc.com 을 사용시
다음글 : Re:httpd.conf 에서
|
from 210.124.182.102
JS(Redhands)Board 0.4 +@
|