apache2-tomcat4 연동에 관해 도움 부탁드립니다.

c0nquer0r의 이미지

apache2tomcat5 howto를 보고 적용하여
127.0.0.1로 접속하면 톰캣 화면이 뜨긴뜨는데 소스로 보입니다.
==========================================
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title><%= application.getServerInfo() %></title>
<style type="text/css">
<!--
body {
color: #000000;
background-color: #FFFFFF;
font-family: Arial, "Times New Roman", Times;
font-size: 16px;
}

A:link {
color: blue
}

A:visited {
color: blue
}

td {
color: #000000;
font-family: Arial, "Times New Roman", Times;
font-size: 16px;
}
:
:
=========================================
요즘 제가 삽질을 많이 하고 있는데요... 이건 검색해도 안나오네요
도움주시면 감사하겠습니다.

codebank의 이미지

http://www.kimho.pe.kr/jsp/jsp_install.html
위 사이트 글을 보고 잘 못된 점이 있는지 한번 확인해보세요.
톰켓설정은 두번째 페이지에 나오더군요.
필요한 부분만을 보시면 될것 같네요.
참고로 초기 톰켓의 포트는 80이 아니라 8080인걸로 알고 있습니다.

------------------------------
좋은 하루 되세요.

c0nquer0r의 이미지

질문하는것도 실력이 필요한가 봅니다.
답변을 읽고 제가 한 질문을 보니 바보같이 올렸네요...

다시 질문드립니다 ^^;
아파치도 잘 설치하고, jdk도 잘 설치하고, 톰캣도 잘 설치하고
실행 및 접속학인 다 한 후에
jk2를 이용하여 아파치와 톰캣을 연결했습니다.
httpd.conf에서 directory index에 index.jsp 추가하고
document root를 톰캣의 webapp/ROOT로 변경하고
http://localhost 하면 톰캣의 메인화면이 소스형태로 보입니다.

jakarta-tomcat-connectors-jk2-src-current.tar.gz 받아서
$ ./configure --with-apxs2=/usr/local/apache/bin/apxs
$ make
$ cd ../build/jk2/apache2
$ /usr/local/apache/bin/apxs -n jk2 -i mod_jk2.so
mod_jk2.so 만들었구요.
아무래도 아파치에서 jsp 파일을 제대로 읽지 못해서 그런것 같은데요
참고해야할 설정들이 있으면 지도 부탁드립니다.

codebank 님 답변감사하고 링크한 사이트 잘봤습니다 ^^

익명 사용자의 이미지

/usr/local/apache/conf아래에 workers2.properties 파일내에 아래와 같은 코드 추가 하지 않으면 jsp 파일을 처리하지 못하더군요..
[uri:/*]
worker=ajp13:localhost:8009

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.