• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Deploy war files in Apache

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ranchers,
I am using Apache 2.0.44, Jakarta-Tomcat-5.0.28 and Struts-1.2.9
I have configured Apache & Tomcat. I am able to access jsp files from the Apache document root i.e. htdocs.

The struts war files get deployed when the Tomcat server is started. My problem is instead of accessing the "index.jsp" page from port 8080 i.e. http://localhost:8080/MyApplication/index.jsp. I would like to access it from port 80 i.e. http://localhost:80/MyApplication/index.jsp

Is it possible to deploy 'war' files under Apache htdocs?
Any suggestions please.....
[ April 05, 2006: Message edited by: Shailesh Pillai ]
 
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Please refer to this:
http://www.klawitter.de/tomcat80.html

You can change the port to 80 by making the below changes in your server.xml which is placed in your TOMCAT_HOME\conf directory.

<Connector
port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
 
Shailesh Pillai
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Kailash,
I got ur point. But the company wants to keep Apache at port 80 and Tomcat at 8080. As far as i know war files wont get deployed on Apache document root.

I just want to know is it possible by typing http://localhost/MyApplication/index.jsp I will be forwarded to TOMCAT_HOME\webapps\MyApplication\index.jsp.

One way i think of is to provide a LINK on an HTML page in 'htdocs' having the URL http://localhost:8080/MyApplication/index.jsp. But i don't think its a nice way.
Any suggestions...........
 
Zip Ped
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does this make any sense? I just googled on your question and thought this might be relevant.
 
Shailesh Pillai
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kailash,
What u suggested is a good and better option. That's a great way to achieve my task.
Thanks once more....
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic