>> Edit article
이름
제목
패스워드
: 안녕하세요.. : 아파치 설정 파일 전체를 올리셨네요.. -.-;; : 버추얼 서버 셋팅은 네임서버와도 연관이 있는데 : 네임서버가 잘되어 있다는 가정하에 답변 드리겠습니다. : : 우선 버추얼 서버 셋팅을 하시려는 서버의 : 디폴트 서버 주소가 필요합니다.. : : 그러니까 님께서는 현재 2개의 도메인을 셋팅하려 하시는데 : aaa.co.kr 하고 bbb.co.kr 둘중에 어떤거 하나가 : 디폴트로 쓰는 주소가 있어야 한다는 것이지요.. : : 그리구 밑에 설정파일에 보시면. : : Bind Address * : : 이 부분이 주석처리가 되어있는데 주석 빼주셔야 합니다. : 네임 버추얼 호스팅을 하시려면요... : : 그리고 나머지는 다 잘되어 있는거 같고 : 버추얼 셋팅 부분만 보도록 하죠.. : : : # BindAddress: You can support virtual hosts with this option. This : : option : : # is used to tell the server which IP address to listen to. It can : : either : : # contain "*", an IP address, or a fully qualified Internet domain : : name. : : # See also the VirtualHost directive. : : : : #BindAddress * : : 여기 주석 없애 주시구요.. : : : : # Listen: Allows you to bind Apache to specific IP addresses and/or : : # ports, in addition to the default. See also the VirtualHost command : : : : #Listen 3000 : : #Listen 12.34.56.78:80 : : : : # VirtualHost: Allows the daemon to respond to requests for more than : : one : : # server address, if your server machine is configured to accept IP : : packets : : # for multiple addresses. This can be accomplished with the ifconfig : : # alias flag, or through kernel patches like VIF. : : : : # Any httpd.conf or srm.conf directive may go into a VirtualHost : : command. : : # See also the BindAddress entry. : : : : #<VirtualHost 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 : : #TransferLog logs/host.some_domain.com-access_log : : #</VirtualHost> : : : : NameVirtualHost 100.100.100.1 : : : : <VirtualHost 100.100.100.1> : : ServerName www.aaa.co.kr : : ServerAdmin webmaster@aaa.co.kr : : DocumentRoot "/home/http/htdocs/" : : ErrorLog logs/www.aaa.co.kr-error_log : : TransferLog logs/www.aaa.co.kr-access_log : : </VirtualHost> : : : : <VirtualHost 100.100.100.1> : : ServerName www.bbb.com : : ServerAdmin webmaster@bbb.com : : DocumentRoot "/home/bbb/public_html/" : : ErrorLog logs/www.bbb.com-error_log : : TransferLog logs/www.bbb.com-access_log : : </VirtualHost> : : 음 지금보니 aaa.co.kr 이 기본 홈페이지 같군요. : 버추얼 서버 셋팅에 기본 홈페이지도 설정을 해주셔야 하거든요.. : : <VirtualHost 100.100.100.1> : ServerName www.aaa.co.kr : ServerAdmin webmaster@aaa.co.kr : DocumentRoot "/home/http/htdocs/" : ErrorLog logs/www.aaa.co.kr-error_log : TransferLog logs/www.aaa.co.kr-access_log : </VirtualHost> : : NameVirtualHost 100.100.100.1 : : <VirtualHost 100.100.100.1> : ServerName www.bbb.com : ServerAdmin webmaster@bbb.com : DocumentRoot "/home/bbb/public_html/" : ErrorLog logs/www.bbb.com-error_log : TransferLog logs/www.bbb.com-access_log : </VirtualHost> : : 이렇게 해주시면 될듯 하옵니다...^^; : 네임버추얼호스트 라인을 기본 홈페이지인 aaa.co.kr : 밑에 써보세요...이건 상관없을 수도 있는데.. : 전 그렇게 쓰거든요..^^;; : : 위에 바인드 그거 주석만 풀면 될거 같군요... : 그럼.. : : -- : 메롱~ 답변 무지무지하게 감사합니다 그런데 안돼요 저는 네임서버가 없어서 도메인은 domain.krline.net 에서 호스팅 해주고 있거든요 만일 네임서버상에서 해줘야 하는 일이 있다면 답변 부탁합니다
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved