Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Deploy war files in Apache

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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....
 
New rule: no elephants at the chess tournament. Tiny ads are still okay.
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic