File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploy war files in Apache

 
Shailesh Pillai
Ranch Hand
Posts: 78
  • 0
  • 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 ]
 
Zip Ped
Ranch Hand
Posts: 336
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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....
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic