>> Read No. 1446 article  
dns및 버추얼웹서버 설정

등록 2001-07-12 16:40:00     조회 4
이름 chobo    

		일단 dns에서 설정을 하시고
                                   두번째는 아파치 config에서 설정을
                                    저의 파일 일부를 적어 드리겠습니다.
                                   /etc/named.conf
                                     // generated by named-bootconf.pl
                                    options {
                                           directory "/var/named";
                                           /*
                                            * If there is a firewall between you and nameservers y
ou want                                             * to talk to, you might need to uncomment the 
query-source                                             * directive below.  Previous versions of
 BIND always asked                                             * questions using port 53, but BIND
 8.1 uses an unprivileged                                             * port by default.
                                            */
                                           // query-source address * port 53;
                                   };
                                    //
                                   // a caching only nameserver config
                                   //
                                   zone "." IN {
                                           type hint;
                                           file "named.ca";
                                   };
                                    zone "localhost" IN {
                                           type master;
                                           file "localhost.zone";
                                           allow-update { none; };
                                   };
                                    zone "emoticon.127.in-addr.arpa" IN {
                                           type master;
                                           file "named.local";
                                           allow-update { none; };
                                   };
                                   zone "xxx.xxx.211.in-addr.arpa" {
                                           type master;
                                           file "zone-xxx.xxx.211";
                                   };
                                   zone "xxx.pe.kr" {
                                           type master;
                                           file "xxx.local";
                                   };
                                    key "key" {
                                           algorithm hmac-md5;
                                           secret "VbkFcuOKRUaMUV0KgTyOtrijSjADTgZJBsuLhWevkrlJCxpM
azCyDljvjFEB";                                    };
                                    /var/named/xxx.local
                                   @       IN      SOA     ns.xxx.pe.kr.   webmaster.xxx.pe.kr
.    (                                                                          19
97022700 ; Serial                                                                     
     28800      ; Refresh                                                            
              14400      ; Retry                                                     
                     3600000    ; Expire                                             
                             86400 )    ; Minimum                                     
       IN      NS      ns.xxx.pe.kr.                                            IN     
 A       211.xxx.xxx.xxx                                    localhost       IN      A      
 127.emoticon.1                                    mail    IN      A       211.xxx.xxx.xxx
                                   www     IN      A       211.xxx.xxx.xxx
                                   ftp     IN      A       211.xxx.xxx.xxx
                                   xxx     IN      A       211.xxx.xxx.xxx
                                   xxx     IN      A       211.xxx.xxx.xxx
                                   xxx     IN      A       211.xxx.xxx.xxx
                                    /var/named/zone-xxx.xxx.211
                                    @       IN      SOA     ns.xxx.pe.kr.   webmaster.xxx.pe.k
r.    (                                                                          1
997022700 ; Serial                                                                    
      28800      ; Refresh                                                           
               14400      ; Retry                                                   
                       3600000    ; Expire                                           
                               86400 )    ; Minimum                                   
         IN      NS      ns.xxx.pe.kr.                                    xxx      IN   
   PTR     xxx.pe.kr.                                    xxx     IN      PTR     mail.xxx.pe.
kr.                                    xxx     IN      PTR     www.xxx.pe.kr.             
                       xxx     IN      PTR     ftp.xxx.pe.kr.                           
         xxx     IN      PTR     xxx.xxx.pe.kr.                                    xxx    
 IN      PTR     xxx.xxx.pe.kr.                                    xxx     IN      PTR     
xxx.xxx.pe.kr.                                     저는 이것을 가지고 dns및 아파치 웹서
버,ftp,메일 서버 까지 전부                                    하날로 해결하고 있습니
다.                                     추가로 아파치 웹서버 의 설정은 아래와 같습
니다.                                    /etc/httpd/conf/httpd.conf
                                   ServerName www.xxx.pe.kr                              
       ### Section 3: Virtual Hosts                                    #
                                   # VirtualHost: If you want to maintain multiple domains/hostnames on
 your                                    # machine you can setup VirtualHost containers for them.
                                   # Please see the documentation at <URLemoticonA HREF="http://www.apache.org/docs/vh" TARGET="_blank">http://www.apache.org/docs/vh
osts/>                                    # for further details before you try to setup virtual hosts.
                                   # You may use the command line option '-S' to verify your virtual ho
st                                    # configuration.
                                    #
                                   # If you want to use name-based virtual hosts you need to define at
                                   # least one IP address (and port number) for them.
                                   #
                                   #NameVirtualHost 12.34.56.78:80
                                   #NameVirtualHost 12.34.56.78
                                    #
                                   # VirtualHost example:
                                   # Almost any Apache directive may go into a VirtualHost container.
                                   #
                                   #<VirtualHost ip.address.of.host.some_domain.com>
                                   #    ServerAdmin webmaster at host.some_domain.com             
                       #    DocumentRoot /www/docs/host.some_domain.com                        
            #    ServerName host.some_domain.com                                    #    Error
Log logs/host.some_domain.com-error_log                                    #    CustomLog logs/host.s
ome_domain.com-access_log common                                    #</VirtualHost>
                                    #<VirtualHost _default_:*>
                                    NameVirtualHost 211.xxx.xxx.xxx:80
                                   #
                                   # # www.foo.com 설정
                                   #
                                   <VirtualHost 211.xxx.xxx.xxx>
                                           ServerName www.xxx.pe.kr                     
                       DocumentRoot /var/www/html                                    #    
   ErrorLog logs/www.bar.com-error_log                                    #       CustomLog logs/ww
w.bar.com-access_log common                                    </VirtualHost>
                                   #
                                   #
                                   <VirtualHost 211.xxx.xxx.xxx>
                                           ServerName xxx.xxx.pe.kr
                                           DocumentRoot /mnt/xxx/home/xxx/public_html
                                   #       ErrorLog logs/xxx.xxx.pe.kr-error_log
                                   #       CustomLog logs/xxx.xxx.pe.kr-access_log common
                                   </VirtualHost>
                                   #
                                   #
                                   <VirtualHost 211.xxx.xxx.xxx>
                                           ServerName xxx.xxx.pe.kr
                                           DocumentRoot /mnt/xxx/home/xxx/public_html
                                   #       ErrorLog logs/xxx.xxx.pe.kr-error_log
                                   #       CustomLog logs/xxx.xxx.pe.kr-access_log common
                                   </VirtualHost>
                                   <VirtualHost 211.xxx.xxx.xxx>
                                           ServerName xxx.xxx.pe.kr
                                           DocumentRoot /home/xxx/public_html
                                   #       ErrorLog logs/xxx.xxx.pe.kr-error_log
                                   #       CustomLog logs/xxx.xxx.pe.kr-access_log common
                                   </VirtualHost>
                                   #
                                   #
                                   <VirtualHost 211.xxx.xxx.xxx>
                                           ServerName www.xxx.pe.kr                     
                       ServerAlias *.xxx.pe.kr                                    </VirtualH
ost>                                     #</VirtualHost>
                                    <IfDefine HAVE_SSL>
                                   ##
                                   ## SSL Virtual Host Context
                                   ##
                                    #  Apache will only listen on port 80 by default.  Defining the v
irtual server                                    #  (below) won't make it automatically listen on the 
virtual server's port.                                    Listen 443
                                    #   SSL Session Cache:
                                   #   The cache speeds up processing of multiple parallel requests fr
om                                    #   the same client.
                                   SSLSessionCache shm:/var/cache/ssl_gcache_data(524288)
                                    <VirtualHost _default_:443>
                                    #  General setup for the virtual host
                                   DocumentRoot "/var/www/html"
                                    꼭 성공하세요
                                   나눈다는것은 정말 즐겁구나!!!
이름
암호


>> 관련글
1446 dns및 버추얼웹서버 설정  chobo  2001.07.12  ....
  답장 RE: dns및 버추얼웹서버 설정  바다  2001.07.12  ....
  목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 0.63 초 ] 작업시간: [ 0.07 초 ]

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

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1791045268
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.