>> Read No. 49204 article  
tomcat4.0.1 에서 가상호스트 설정이 잘 안되네요..

등록 2002-05-16 19:26:00     조회 1
이름 김정은    

		#</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 at 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 at 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 at 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 으로 떠버리
네요...  도대체 무엇이 문제인지 모르겠네요...
고수님 왠만한 문서는 돌아다니며 찾아 봤는데 저같은 경우가 어디가 문제인지?
속 시원하게 답변해주세요...
그럼 ...
이름
암호
Register [ localhost 목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 0.38 초 ] 작업시간: [ 0.16 초 ]

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

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1791500712
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.