: 네임서버셋팅을 하신후에
: httpd.conf 파일에 가상호스트 설정을 하셔야합니다.
:
: NameVirtualHost 192.168.1.1
: # www.foo.com 설정
: <VirtualHost 192.168.1.1>
: ServerName www.foo.com : DocumentRoot /home/foo
: ErrorLog logs/www.foo.com-error_log
: CustomLog logs/www.foo.com-access_log common
: </VirtualHost>
: # www.bar.com 설정
: <VirtualHost 192.168.1.1>
: ServerName www.bar.com : DocumentRoot /home/bar
: ErrorLog logs/www.bar.com-error_log
: CustomLog logs/www.bar.com-access_log common
: </VirtualHost>
: 이렇게 하신후에
:
: /etc/rc.d/init.d/named restart
:
: /etc/rc.d/init.d/httpd restart
: or
: 아파치경로/bin/apachectl restart
제가 질문한건 아니지만 저두 버추얼호스트설정하다 실패해서
질문을...
httpd.conf 설정은 알겠는데 네임서버설정을 모르겠습니다.
잘아시는 고수님! 한수 가르침을 주세요?