>> Edit article
이름
제목
패스워드
#</IfModule> # End of proxy directives. WebAppConnection conn warp aaa.com:8008 WebAppDeploy examples conn /examples/ #WebAppDeploy ROOT conn / WebAppInfo /webapp-info ### Section 3: Virtual Hosts # # VirtualHost: If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # 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. # # Use name-based virtual hosting. # #NameVirtualHost * # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # #<VirtualHost *> # ServerAdmin webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common Port 80 ServerName www.aaa.com DocumentRoot "/usr/local/jakarta-tomcat4/webapps/ROOT" NameVirtualHost 211.000.000.000 #Basic Host-aaa.com <VirtualHost 211.000.000.000> ServerAdmin webmaster@aaa.com DocumentRoot /usr/local/jakarta-tomcat4/webapps/ROOT ServerName www.aaa.com ServerAlias aaa.com </VirtualHost> #Virtual Host(1)-bbb.com <VirtualHost 211.000.000.000> ServerAdmin webmaster@bbb.com DocumentRoot /home/bbb/public_html ServerName www.bbb.com ServerAlias bbb.com ErrorLog logs/bbb-error_log CustomLog logs/bbb-access_log common </VirtualHost> 네임서버 설정 확실하구요... 현재 위에는 httpd.conf 의 설정입니다. 현재 설정에서는 http://aaa.com:8080 으로 잘 돌아가며 가상호스트(bbb.com) 또한 잘 돌아갑니다. 하지만 http://aaa.com:80 으로는 jsp 파일을 다운로드 하거나 소스가 보입니다. 그래서,,, WebAppDeploy ROOT conn / 부분의 주석을 제거하면 http://aaa.com:80 에서 jsp 파일이 잘 돌아갑니다. 그런데 문제가 생기는데 가상호스트 bbb.com 이 자기 루트 못찻고 http://aaa.com:80 으로 떠버리네요... 도대체 무엇이 문제인지 모르겠네요... 고수님 왠만한 문서는 돌아다니며 찾아 봤는데 저같은 경우가 어디가 문제인지? 속 시원하게 답변해주세요... 그럼 ...
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved