>> Delete Reply from No. 0 article
No. RE: RE: 가상 호스트에서..

등록 2002-07-03 15:10:00 By localhost     조회 5
이름 곰팽이    

		: : 할당받은 아이피 주소에 가상 호스트를 하려고 합니다.
: : 가상 도메인에 대한 경로를 정해줄때 httpd.conf 문서에서
: : NameVirtualHost xxx.xxx.xxx.xxx
: :
: : <VirtualHost xxx.xxx.xxx.xxx>
: :   ServerAdmin admin at aaa.com : :   DocumentRoot /home/httpd/htdocs/aaa/public_html
: :   ServerName aaa.com
: :   ErrorLog logs/www.aaa.com-error_log
: :   CustomLog logs/www.aaa.com-access_log common
: : </VirtualHost>
: :
: : <VirtualHost xxx.xxx.xxx.xxx>
: :   ServerAdmin admin at aaa.com : :   DocumentRoot /home/httpd/htdocs/aaa/public_html
: :   ServerName www.aaa.com : :   ErrorLog logs/www.aaa.com-error_log
: :   CustomLog logs/www.aaa.com-access_log common
: : </VirtualHost>
: :
: : 이렇게 고쳤는데 인터넷에서 aaa.com 을 치면 aaa/public_html 에 있는 index.html
: : 문서가 안뜨고 xxx.xxx.xxx.xxx 의 index.html 문서가 뜹니다.
: : aaa.com 의 index.html 문서를 띄우려면 어떻게 하나요?
:
: 위와 같이 하신후 아파치는 설정하셨겠죠?
: /usr/local/apache/bin/apachectl restart
:
: 하셨다면 저도~~~잘 모르겠고
: 위아 같이 세팅하시면 1개 도메인당 2개씩 늘어나니 힘들것 같네요.
: www의 경우 alias시켜 하심이 좋을듯합니다.
:
: <VirtualHost xxx.xxx.xxx.xxx>
:   ServerAdmin admin at aaa.com :   DocumentRoot /home/httpd/htdocs/aaa/public_html
:   ServerName aaa.com                      <-- 이렇게하는게 편한
:   ServerAlias www.aaa.com                 <-- 이렇게하는게 편한
:   ErrorLog logs/www.aaa.com-error_log
:   CustomLog logs/www.aaa.com-access_log common
: </VirtualHost>
:
:
: ^^*
:
: --
: 삽질맨
 답변 감사합니다. 저 그런데 /home/httpd/bin/apachectl restart 했더니
/home/httpd/bin/apachectl restart: configuration broken, ignoring restart
/home/httpd/bin/apachectl restart: (run 'apachectl configtest' for details)
이렇게 나옵니다. 이건 어떻게 해야 하는지....
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

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