기술지원 문의

관리자님 버추얼호스팅 apache - resin 설정전문 입니다. 잘못된 부분좀 고쳐주세요
한강석 / 2004-02-11 11:40


#아파치 httpd.conf 설정
LoadModule caucho_module /usr/local/apache/libexec/mod_caucho.so
AddModule mod_caucho.c

  CauchoConfigFile /usr/local/resin-2.1.8/conf/resin.conf
  
    SetHandler caucho-status
  


NameVirtualHost 192.168.0.1

    ServerAdmin webmaster@aaa.co.ke
    DocumentRoot /home/aaa/WWW
    ServerName www.aaa.co.kr
    ServerAlias aaa.co.kr
    DirectoryIndex index.jsp main.jsp index.html index.htm
    ErrorLog /usr/local/apache/logs/aaa-error_log
    CustomLog /usr/local/apache/logs/aaa-access_log common



    ServerAdmin webmaster@bbb.co.kr
    DocumentRoot /home/bbb/WWW
    ServerName www.bbb.co.kr
    ServerAlias bbb.co.kr
    DirectoryIndex index.jsp main.jsp index.html index.htm
    ErrorLog /usr/local/apache/logs/bbb-error_log
    CustomLog /usr/local/apache/logs/bbb-access_log common



    ServerAdmin webmaster@ccc.co.kr
    DocumentRoot /home/ccc/WWW
    ServerName www.ccc.co.kr
    ServerAlias ccc.co.kr
    DirectoryIndex index.jsp main.jsp index.htm
    ErrorLog /usr/local/apache/logs/ccc-error_log
    CustomLog /usr/local/apache/logs/ccc-access_log common


#/usr/local/resin-2.1.8/conf/resin.conf
#기본레진 설정파일




  jdbc/test
  javax.sql.DataSource
  
  
  
  
  
  




  doc
  
  
  -1s
  false
  
  true
  
  150
  
  
  
  
  true
  
  
  
  
  
  index.xtp, index.jsp, index.htm
  none
  
    
    
    

                       source=WEB-INF/classes
                 compile=true/>
      
        4096
        30
        true
        true
        
      

      
      
      
      
        
  




#/usr/local/resin-2.1.8/conf/aaa.conf
#aaa.co.kr 파일설정




  jdbc/test
  javax.sql.DataSource
  
  
  
  
  
  




  /home/aaa/WWW
  
   #####포트를 8911로설정#####
  2s
  false
  true
  150
  
  
  
  
  true
  
  
  
  
  
  index.jsp, main.jsp, index.xtp, index.htm
  
              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
      

                          real-path=/home/$1/public_html//>
    
  




#/usr/local/resin-2.1.8/conf/bbb.conf
#bbb.co.kr 파일설정




  jdbc/test
  javax.sql.DataSource
  
  
  
  
  
  




  /home/bbb/WWW
  
   #####포트를 8912로설정#####
  2s
  false
  true
  150
  
  
  
  
  true
  
  
  
  
  
  index.jsp, main.jsp, index.xtp, index.htm
  
              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
      

                          real-path=/home/$1/public_html//>
    
  



#/usr/local/resin-2.1.8/conf/ccc.conf
#ccc.co.kr 파일설정




  jdbc/test
  javax.sql.DataSource
  
  
  
  
  
  




  /home/ccc/WWW
  
   #####포트를 8913로설정#####
  2s
  false
  true
  150
  
  
  
  
  true
  
  
  
  
  
  index.jsp, main.jsp, index.xtp, index.htm
  
              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
      

                          real-path=/home/$1/public_html//>
    
  




#아파치 실행
/usr/local/apache/bin/apachectl start
아파치 실행은 정상적으로 실행됨

#레진실행
$RESIN_HOME/bin/httpd.sh -conf aaa.conf -pid aaa.pid start
$RESIN_HOME/bin/httpd.sh -conf bbb.conf -pid bbb.pid start
$RESIN_HOME/bin/httpd.sh -conf ccc.conf -pid ccc.pid start
레진실행도 정상적으로 실행됨

#사이트접속
http://www.aaa.com or http://www.bbb.com or http://www.ccc.com 으로 접근됨

문제는 jsp페이지를 호출하면 jsp소스가 그대로 보입니다.
문제가 무었인지요 apche와 resin사이의 통신문제 인거 같은데... 위설정파일에서 잘못된 부분이나 변경해야할 부분좀 알려주세요

[Re]관리자님 버추얼호스팅 apache - resin 설정전문 입니다. 잘못된 부분좀 고쳐주세요
관리자 / 2004-02-11 15:57

Resin 설정은 이상없는 것 같고, Apache 설정 부분에서 Resin의 conf 경로를 제대로 찾지 못하는 것 같습니다.


ServerAdmin webmaster@aaa.co.ke
DocumentRoot /home/aaa/WWW
ServerName www.aaa.co.kr
ServerAlias aaa.co.kr
DirectoryIndex index.jsp main.jsp index.html index.htm
ErrorLog /usr/local/apache/logs/aaa-error_log
CustomLog /usr/local/apache/logs/aaa-access_log common
CauchoConfigFile /usr/local/resin-2.1.8/conf/aaa.conf                <== 이 부분


이런식으로 각각 버추얼 호스트 마다 Resin의 conf을 찾을 수 있게 경로를 지정해주세요.