>> Edit article
이름
제목
패스워드
: 할당받은 아이피 주소에 가상 호스트를 하려고 합니다. : 가상 도메인에 대한 경로를 정해줄때 httpd.conf 문서에서 : NameVirtualHost xxx.xxx.xxx.xxx : : <VirtualHost xxx.xxx.xxx.xxx> : ServerAdmin admin@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@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@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> ^^*--삽질맨
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved