www.su.co.kr=su.co.kr를 같게 하려면
작성자 정보
- 배덕한 작성
- 작성일
컨텐츠 정보
- 3,082 조회
- 0 추천
- 목록
본문
http://www.superuser.co.kr/ 나 http://superuser.co.kr/ 를 쳤을때 똑같은 web사이트가 보이게
할려면, /var/named/밑에 있는 zone파일에서 설정해주면 됩니다.
zone파일에서
처음부분 생략......
IN A 203.247.64.55(해당IP주소)
www IN A 203.247.64.55(해당IP주소)
위처럼, 해주면 superuser.co.kr 했을때나 www.superuser.co.kr했을때 똑같이 203.247.64.55의
사이트로 들어가게 됩니다..
그래도 안되시면,
/usr/local/apache/conf/httpd.conf 파일에서 VirtualHost부분을 설정해줍니다.
NameVirtualHost 203.247.64.55 (해당 IP주소)
---------------------------------------------------------
<VirtualHost 203.247.64.55>
ServerAdmin admin@superuser.com (사용하는 멜주소입력)
DocumentRoot /usr/local/apache/htdocs
ServerName www.superuser.com
ServerAlias superuser.com www.superuser.com
생략.....
</VirtualHost>
데몬 다시 돌려주시구요.....
그래도 안되시면 다시 글 올려주세요....
관련자료
-
이전
-
다음