November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Static page on apache using tomcat

he apache main job of the partial pressure, static page as apache on processing, servlets, jsp page ajp13 protocol gave tomcat, tomcat to handle.

http://archive.apache.org/dist/
http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.16/
jakarta-tomcat-connectors-jk-1.2.6-src.tar.tar

# Tar xzvf jakarta-tomcat-connectors-jk-1.2.6-src.tar.tar

# Cd jakarta-tomcat-connectors-jk-1.2.6-src/jk/native

#. / Configure – with-apxs = / usr/local/apache2/bin/apxs

# Make

# Cp ./apache-2.0/mod_jk.so / usr/local/apache2/modules /

 

the workers.properties will generate jk / conf

To copy it to the apache / conf / with httpd.conf in the same directory,

To the CD mod_jk.so in httpd.conf and Canada

LoadModule jk_module modules / mod_jk.so

If workers.properties. Named should join.
JkWorkersFile “/ project / apache / conf / extra / workers.properties”

 

My machine plus mod_jk2.so

LoadModule jk_module modules / mod_jk.so

 

Install apache

sudo. / configure – with-apxs = / project / apache / bin / apxs

$ Tar xjvf httpd-2.2.3.tar.bz2
$ Cd httpd-2.2.3 /
. / Configure – prefix = / project / apache – enable-rewrite – enable-so

Domain. / Configure – prefix = / usr / local / apache – enable-so – enable-mods-shared = all
$ Make
$ Sudo make install

jk operation
http://localhost/jkstatus

Domain is not configured

<Directory “/home/splashnote/splashnote/webapp”>
 Options Indexes FollowSymLinks
 AllowOverride All
 Allow from all
</ Directory>

 

<VirtualHost *:80>
    DocumentRoot / home / splashnote / splashnote / webapp
    ServerName dns.websketch.com
    ServerAlias *. Websketch.com
    DirectoryIndex home.html

    <IfModule Mod_rewrite.c>
        RewriteEngine on
        RewriteCond% {HTTP_HOST} ^ [^.] + /. Websketch /. (Com) $
        RewriteRule ^ (. +)% {HTTP_HOST} $ 1 [C]
        RewriteRule ^ ([^.] +) /. Websketch /. (Com) (. *) $ / Home / splashnote / splashnote / webapp / sylvan $ 3? $ 1 /% {QUERY_STRING} [L]
    </ IfModule>

</ VirtualHost>

 

jk operation
http://localhost/jkstatus

apache operation

sudo. / bin / apachectl.-t

sudo. / bin / apachectl start

 

 

ubuntu 8.04 installed apache2.2.10 experiences tomcat 6.0

 

 

 

Download apache under

zlib:
. / Configure – prefix = / root / dev_ent / zlib
apr:
. / Configure – prefix = / root / dev_ent / apr

apr-util:
. / Configure – with-apr = / root / dev_ent / apr / – with-berkeley-db = / usr / local / bdb
(Note: apr-util Do – prefix = / / .. automatic install ¬ / usr/local/apr/bin/apu-1-config

apache:
. / Configure – prefix = / root / dev_ent / apache – enable-so – enable-dav – with-apr = / root/dev_ent/apr/bin/apr-1-config – with-apr-util = / usr/local/apr/bin/apu-1-config
(Enable-so – enable-dav with mod_jk.so to the apache load so)

svn:
. / Configure – prefix = / root / dev_ent / subversion – with-berkeley-db = / usr / local / bdb – with-apxs = / root / dev_ent / apache / bin / apxs – with-apr = / root/dev_ent/apr/bin/apr-1-config – with-apr-util = / usr/local/apr/bin/apu-1-config – with-ssl – with-zlib = / root / dev_ent / zlib – enable-maintainer-mode
 Newspaper database bberkeleyDB error
 # Tar zxvf db-4.7.25.tar.gz
 # Cd db-4.7.25/build_unix /
 #.. / Dist / configure – prefix = / usr / local / bdb
 # Make
 # Make install

(Note berkeleyDB will occupy 8080)

 

workers.properties, mod_jk.conf

workers.properties:
# The following can also do load balancing
# Worker.list = controller, tomcat1, tomcat2

workers.tomcat_home = / root/dev_ent/apache-tomcat-6.0.14
workers.java_home = / root/dev_ent/jdk1.6.0_05
worker.list = tomcat1
# ======== Tomcat1 ========

worker.tomcat1.port = 8009

worker.tomcat1.host = localhost

worker.tomcat1.type = ajp13

worker.tomcat1.lbfactor = 1

# ======== Tomcat2 ========

# Worker.tomcat2.port = 9009

# Worker.tomcat2.host = localhost

# Worker.tomcat2.type = ajp13

# Worker.tomcat2.lbfactor = 1

# ======== Controller ========

# Worker.controller.type = lb

# Worker.controller.balanced_workers = tomcat1, tomcat2

# Worker.controller.balanced_workers = tomcat1
# Worker.controller.sticky_session = 1

mod_jk.conf file

 

LoadModule jk_module modules / mod_jk.so

 

JkWorkersFile conf / workers.properties

 

JkMount / *. Jsp controller

JkMount / *. Do controller

JkMount / *. Img controller

conf / httpd.conf

Include conf / mod_jk.conf
Include conf / extra / website.conf

website.conf

JkMount / *. Jsp tomcat1

<Directory “/root/project/website/webapp”>
        Options Indexes FollowSymLinks
        AllowOverride All
        Allow from all
</ Directory>

 

<VirtualHost *:80>
    DocumentRoot / root / project / website / webapp
    ServerName www.website.com
    JkMount / * tomcat1
    JkMount / *. Jsp tomcat1
    DirectoryIndex student.jsp
</ VirtualHost>

tomcat conf / server.xml configuration

 <Context displayName = “Welcome to Tomcat”
   docBase = “/ home / splashnote / splashnote / webapp” path = “/ splashnote08” reloadable = “true” workDir = “work/Catalina/localhost/splashnote08”>
   
  </ Context>

(Note: there is no path = “/”)
/ Etc / hosts
 ip weburl

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>