기술지원 문의

apache-resin 연동 가상호스팅 설정전문입니다.
강병택 / 2004-08-03 19:55

RedHat 9 - Apache 1.3.29 - Resin 2.1.14 환경에서 가상호스팅을 구현할려고 합니다.

앞의 질문들 검색후에 제 나름대로 정리하여 시도해봤지만 1:1 연동은 잘되지만 가상호스팅만 들어가면 연동이되질 않습니다.

아파치 가상호스팅은 되는데 레진과 통신부분에서 문제가 있는것 같습니다.

보시고 충고 바람니다.(__)

---------------------------- httpd.conf 가상호스팅 설정부분입니다. ---------------------------
NameVirtualHost *:80
##############################################################
LoadModule caucho_module /usr/apache/libexec/mod_caucho.so
#AddModule mod_caucho.c                                
#AddHandler caucho-request jsp                             * 주석부분은 해제시켜보기도 하였습니다*
#
#  CauchoConfigFile /usr/resin/conf/resin.conf
#    
#      SetHandler caucho-status
#    
#


    ServerAdmin root@localhost
    DocumentRoot /data/aaa
    ServerName aaa.resin.co.kr
    ErrorLog /data/aaa/logs/error_log
    CustomLog /data/aaa/logs/access_log common
    CauchoConfigFile /usr/resin/conf/aaa-resin.conf



    ServerAdmin root@localhost
    DocumentRoot /data/bbb
    ServerName bbb.resin.co.kr
    ErrorLog /data/bbb/logs/error_log
    CustomLog /data/bbb/logs/access_log common
    CauchoConfigFile /usr/resin/conf/bbb-resin.conf



    ServerAdmin root@localhost
    DocumentRoot /data/ccc
    ServerName ccc.resin.co.kr
    ErrorLog /data/ccc/logs/error_log
    CustomLog /data/ccc/logs/access_log common
    CauchoConfigFile /usr/resin/conf/ccc-resin.conf


###############################################################

------------------------------ resin.conf ------------------------------------------
---- resin.conf(default) ----


  /doc
  
  
  2s
  false
  true
  150
  
  
  
  
  true
  
  
  
  
  
  index.xtp, index.jsp, index.html
  
              format=%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"
          rollover-period=1W/>
    
    
    
                       source=WEB-INF/classes
                 compile=true/>
      
        4096
        30
        true
        true
      

    
  



----- aaa-resin.conf -----




  jdbc/test
  javax.sql.DataSource
  
  
  
  
  
  



  /data/aaa     ************ default 에서 수정부분입니다.
  
       ***********
  2s
  false
  true
  150
  
  
  
  
  true
  
  
  
  
  
  index.xtp, index.jsp, index.html
  
              format=%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"
          rollover-period=1W/>
               ****************
    
    
                       source=WEB-INF/classes
                 compile=true/>
      
        4096
        30
        true
        true
      

    
  



------ bbb-resin.conf ----------




  jdbc/test
  javax.sql.DataSource
  
  
  
  
  
  



  /data/bbb             ***************
  
                **************
  2s
  false
  true
  150
  
  
  
  
  true
  
  
  
  
  
  index.xtp, index.jsp, index.html
  
              format=%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"
          rollover-period=1W/>
               *************
    
    
                       source=WEB-INF/classes
                 compile=true/>
      
        4096
        30
        true
        true
      

    
  




------------- ccc-resin.conf ------------





  jdbc/test
  javax.sql.DataSource
  
  
  
  
  
  



  /data/ccc      **************
  
                *************
   2s
  false
  true
  150
  
  
  
  
  true
  
  
  
  
  
  index.xtp, index.jsp, index.html
  
              format=%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"
          rollover-period=1W/>
                 ************
    
    
                       source=WEB-INF/classes
                 compile=true/>
      
        4096
        30
        true
        true
      

    
  




#####################################################################

#아파치 실행
/usr/apache/bin/apachectl start
정상실행

#레진실행
$RESIN_HOME/bin/httpd.sh -conf aaa-resin.conf -pid aaa-resin.pid start
$RESIN_HOME/bin/httpd.sh -conf bbb-resin.conf -pid bbb-resin.pid start
$RESIN_HOME/bin/httpd.sh -conf ccc-resin.conf -pid ccc-resin.pid start
정상실행

이상입니다.
앞서 말씀드린거와 같이 아파치는 가상호스팅에 문제없이 반응을 합니다.
하지만 jsp호출시에 resin으로 넘기지를 못하는것 같습니다.
지적바람니다.
그럼 수고하십시오~~

[Re]apache-resin 연동 가상호스팅 설정전문입니다.
관리자 / 2004-08-06 14:54

아파치쪽 세팅은 문제가 없어 보입니다.

일단, 각 Resin 관련된 conf파일들에서 
 주석 또는 삭제처리 해주세요. 포트 충돌로 인해 Resin start가 되지 않았을 겁니다.

그리고, Resin start시 conf 경로를 못 찾았을 것 같군요. 다음과 같이 해보시죠..
$RESIN_HOME/bin/httpd.sh -conf conf/aaa-resin.conf -pid aaa-resin.pid start

그럼..