Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache configuration to talk to Tomcat apps on a different server

Status
Not open for further replies.
Apr 20, 2001
27
0
0
US
I am setting up Apache on one server and tomcat on another server. I have my tomcat apps/db working within tomcat environment. How do I set up Apache httpd/worker to redirect to this tomcat on another server call devapp01
This current configuration didn't work for me... What am I doing wrong? mod_jk log keep saying worker not found
I am in a windows environment
Thanks

Currently my httpd.conf

#mywebsite.mydomain.com

<VirtualHost *:80>
JkMount /* mywebsite
ServerAdmin aisinet@mydomain.com
DocumentRoot "d:/WebSites"
ServerName mywebsite.mydomain.com
ErrorLog d:/WebLogs/mywebsite/apache.log
CustomLog d:/WebLogs/mywebsite/ffcpweb4-apache-mywebsite.log combined
</VirtualHost>

My worker.properties file is on the same server as Apache with setting:

worker.mywebsite.port=20009
worker.mywebsite.host=devapp01.mydomain.com
worker.mywebsite.type=ajp13

and my tomcat server.xml
<Server port="20005" shutdown="SHUTDOWN">
<Service name="mywebsite">
<Connector port="9085"
URIEncoding="UTF-8"
maxHttpHeaderSize="8192"
maxThreads="150"
minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false"
redirectPort="8443"
acceptCount="100"
connectionTimeout="20000"
disableUploadTimeout="true" />
<!-- Define an AJP 1.3 Connector on port 20009 -->

<Connector port="20009"
URIEncoding="UTF-8"
enableLookups="false"
redirectPort="8443"
protocol="AJP/1.3" />
<Host name="mywebsite.mydomain.com"
appBase="webapps"
unpackWARs="true"
autoDeploy="true"
xmlValidation="false"
xmlNamespaceAware="false">
<Context docBase="D:\WebSites\mywebiste\WebContent"
privileged="true"
antiResourceLocking="false"
antiJARLocking="false"
path=""
reloadable="true">
<Resource name="jdbc/fujiCommOracleDS"
auth="Container"
type="javax.sql.DataSource"
username="FUJIEHS"
password="FUJIEHS08"
driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:eek:racle:thin:mad:DEVLINUX.MYDOMAIN.COM:1521:DEVLINUX"
maxActive="8"
maxIdle="4"/>

</Context>

<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
directory="D:\WebSites\mywebsite\logs"
prefix="mywebsite-Web4-" suffix=".log"
pattern="combined"
resolveHosts="false"
fileDateFormat="yyyy-MM-dd"/>
</Host>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top