>> Edit article
이름
제목
패스워드
일단 dns에서 설정을 하시고 두번째는 아파치 config에서 설정을 저의 파일 일부를 적어 드리겠습니다. /etc/named.conf // generated by named-bootconf.pl options { directory "/var/named"; /* * If there is a firewall between you and nameservers you 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 "0.0.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 "VbkFcuOKRUaMUV0KgTyOtrijSjADTgZJBsuLhWevkrlJCxpMazCyDljvjFEB"; }; /var/named/xxx.local @ IN SOA ns.xxx.pe.kr. webmaster.xxx.pe.kr. ( 1997022700 ; 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.0.0.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.kr. ( 1997022700 ; 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 <URL:http://www.apache.org/docs/vhosts/> # for further details before you try to setup virtual hosts. # You may use the command line option '-S' to verify your virtual host # 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@host.some_domain.com # DocumentRoot /www/docs/host.some_domain.com # ServerName host.some_domain.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_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/www.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 </VirtualHost> #</VirtualHost> <IfDefine HAVE_SSL> ## ## SSL Virtual Host Context ## # Apache will only listen on port 80 by default. Defining the virtual 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 from # the same client. SSLSessionCache shm:/var/cache/ssl_gcache_data(524288) <VirtualHost _default_:443> # General setup for the virtual host DocumentRoot "/var/www/html" 꼭 성공하세요 나눈다는것은 정말 즐겁구나!!!
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved