Skip to content

조회 수 11402 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

1) sudo apt-get install apache2 tomcat6 libapache2-mod-jk
2) sudo vim /etc/apache2/workers.properties
내용추가:
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009

3) sudo vim /etc/apache2/apache2.conf
맨 아래줄 내용추가: 
# Load mod_jk module
# Update this path to match your modules location
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
# Declare the module for (remove this line on Apache 2.x)
#AddModule mod_jk.c
# Where to find workers.properties
# Update this path to match your conf directory location (put workers.properties next to httpd.conf)
JkWorkersFile /etc/apache2/workers.properties
# Where to put jk shared memory
# Update this path to match your local state directory or logs directory
JkShmFile /var/log/apache2/mod_jk.shm
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next to access_log)
JkLogFile /var/log/apache2/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "


6) sudo vim /etc/apache2/sites-enabled/000-default
주석처리 "DocumentRoot /var/www" 
바로 아래줄에 두줄 추가 
JkMount / worker1
JkMount /* worker1

7) 톰캣의 8009번포트 활성화
sudo vim /etc/tomcat6/server.xml
아래 라인의 주석된것을 삭제
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

8) 톰캣재시작
sudo /etc/init.d/tomcat6 restart

9) 아파치재시작
sudo /etc/init.d/apache2 restart

10) 웹에서 접속
80포트로 접속했을시에 톰캣페이지가 나오면 성공


  1. 트래픽분석툴(mod_throttle) 설치 및 설정 - apache1.3.x ...

    Date2010.05.03 ByADMINPLAY Views20019
    Read More
  2. 초간단 웹 페이지 로딩시간 체크법

    Date2009.03.17 ByADMINPLAY Views15350
    Read More
  3. 웹페이지에서 한글이 깨지는 현상 막기

    Date2009.01.03 ByADMINPLAY Views16528
    Read More
  4. 웹페이지 가속 기술인 모드 페이지스피드(mod_pagespeed)...

    Date2013.01.27 Byl2zeo Views12145
    Read More
  5. 웹방화벽 ModSecurity 룰적용 순서

    Date2010.05.29 Byl2zeo Views18916
    Read More
  6. 웹 사이트 속도측정

    Date2009.03.04 ByADMINPLAY Views16462
    Read More
  7. 우분투9.10 - Tomcat6 와 Apache2연동

    Date2012.10.31 ByADMINPLAY Views11402
    Read More
  8. 아파치웹서버 모니터링하기

    Date2009.03.17 ByADMINPLAY Views16476
    Read More
  9. 아파치에서 한글 파일 읽기 [mod_url 설치]

    Date2009.03.17 ByADMINPLAY Views17297
    Read More
  10. 아파치에서 멀티도메인 설정 방법

    Date2012.10.09 Byl2zeo Views20974
    Read More
  11. 아파치(apache) 무단 링크 방지

    Date2011.06.18 ByADMINPLAY Views18977
    Read More
  12. 아파치 특정폴더에 암호걸기

    Date2008.10.08 ByADMINPLAY Views16032
    Read More
  13. 아파치 컴파일 에러(apr-util) configure: error: cannet ...

    Date2009.08.08 ByADMINPLAY Views19574
    Read More
  14. 아파치 웹서버 사용 시 무단 링크 방지법

    Date2009.04.03 ByADMINPLAY Views15592
    Read More
  15. 아파치 모듈 내용

    Date2008.12.10 ByADMINPLAY Views15905
    Read More
  16. 아파치 데몬이 안 뜰경우

    Date2009.11.26 ByADMINPLAY Views14874
    Read More
  17. 아파치 GeoIP를 이용한 국가별 제한

    Date2010.01.30 ByADMINPLAY Views18787
    Read More
  18. 아파치 2.X 버전에서 mod_cband를 이용한 트래픽관리

    Date2009.01.17 ByADMINPLAY Views19022
    Read More
  19. 서비스 제한측면의 아파치 활용 예제

    Date2012.06.26 ByADMINPLAY Views30320
    Read More
  20. 서비스 동시접속 인원알기

    Date2008.10.07 ByADMINPLAY Views16892
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234