>> Delete No. 20165 article
No. www.aaa.com과 aaa.com의 접속이 틀립니다.

등록 2001-02-07 22:09:00 By localhost     조회 2
이름 sshaky    

		안녕하세요.
http://www.aaa.com은 접속이 안되고 http://aaa.com은 접속이 됩니다.
여기에 나와있는 방법을 다 사용해 봤는데 안됩니다.
제가 사용한 방법은
1. ServerAlias www.aaa.com 2. <VirtualHost xxx.xxx.xxx.xxx>
      ServerName www.aaa.com    </VirtualHost>
    NameVirtualHost xxx.xxx.xxx.xxx
    <VirtualHost xxx.xxx.xxx.xxx>
      ServerName aaa.com
   </VirtualHost>
입니다.
아무리 해도 안됩니다.
 다음은 제가 설정한 방법입니다.
 named.conf파일
options {
        directory "/var/named";
};
 zone "." {
    type hint;
    file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
    type master;
    file "named.local";
};
zone "xxx.xxx.xxx.in-addr.arpa" {
    type master;
    file "zone-xxx.xxx.xxx";
};
 zone "aaa.com" {
    type master;
    file "zone-aaa.com";
};
  zone-aaa.com파일
@       IN      SOA     ns.aaa.com. root.aaa.com.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      ns.aaa.com.
              IN      A       XXX.XXX.XXX.XXX
              IN      MX      10 mail.aaa.com.
 localhost     IN      A       127.0.0.1
ns            IN      A       XXX.XXX.XXX.XXX
 mail          IN      CNAME   @
www           IN      CNAME   @
ftp           IN      CNAME   @
telnet        IN      CNAME   @
 httpd.conf파일
<VirtualHost xxx.xxx.xxx.xxx>
ServerAdmin     master at aaa.com DocumentRoot    /home/aaa/public_html
</VirtualHost>
 NameVirtualHost xxx.xxx.xxx.xxx
 <VirtualHost xxx.xxx.xxx.xxx>
ServerAdmin     master at aaa.com ServerName      aaa.com
DocumentRoot    /home/aaa/public_html
ServerAlias     www.aaa.com </VirtualHost> 
 답변부탁드립니다.--열심히 부지런히...^^
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved