Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
| Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 4th, 2005, 07:41 AM
Registered User
 
Join Date: May 2005
Location: Mumbai, , India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default apache virtual server, mod_jk, tomcat 5

Hi,

I am using jk, apache 1.3 server and tomcat 5.
I have setup new virtual server with apache and using
jk to server the jsp requests to tomcat. (The server is listening on port 200)

I have used following settings for virtual server
<VirtualHost *:200>
ServerAdmin info@test.com
DocumentRoot G:/jspprojects/myproject
ServerName intellect

<Directory "G:/jspprojects/myproject">
Options Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
JkMount /servlet/* testWorker
JkMount /*.jsp testWorker
<location "/web-inf/">
AllowOverride None
deny from all
</location>
</VirtualHost>

And my workers file is
worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

I have tried to view the page in my browser using
http://localhost:200/ and I got the listing of files under
"myprojects" directory. when i click on any html or gif file I get the file view but when i click on index.jsp file
It is showing me the file of tomcat(http://localhost:8080) and not my projects file. Please help me to solve this issue. when ever i request any jsp file it is not picking up that file from myprojects directory rather it is taking default tomcat root directory. Tell me where i am going wrong.
  #2 (permalink)  
Old May 17th, 2005, 09:44 AM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I am having the same problem...

I am starting tomcat and apache and when I go to localhost:8009 which is my tomcat port it is there but its not pulling from my root webapps folder, its pulling from my apache directory. When I go to localhost it puls up a file list, which i know to fix with permissions. But why is my localhost:8009 going to my apache folder and not my tomact one?



Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_jk Load Balancing and Virtual Hosts dfwjava BOOK: Professional Apache Tomcat 0 October 17th, 2007 06:12 PM
*.do URLs dont work in apache web server+tomcat haomomo Struts 1 August 29th, 2006 09:57 AM
mod_jk + apache + mod_rewrite fanch Apache Tomcat 0 December 5th, 2005 12:34 PM
RedHat 9, Apache, Tomcat, mod_jk pzh19z Apache Tomcat 0 January 2nd, 2004 12:17 PM
Apache Tomcat/4.1.2 and Windows 2K Advanced server billyducs Apache Tomcat 4 November 7th, 2003 11:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.