This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Deploy war files in Apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Deploy war files in Apache" Watch "Deploy war files in Apache" New topic
Author

Deploy war files in Apache

Shailesh Pillai
Ranch Hand

Joined: Jan 24, 2006
Posts: 78
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

Joined: Jul 26, 2005
Posts: 336
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

Joined: Jan 24, 2006
Posts: 78
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

Joined: Jul 26, 2005
Posts: 336
Does this make any sense? I just googled on your question and thought this might be relevant.
Shailesh Pillai
Ranch Hand

Joined: Jan 24, 2006
Posts: 78
Thanks Kailash,
What u suggested is a good and better option. That's a great way to achieve my task.
Thanks once more....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploy war files in Apache
 
Similar Threads
Tomcat Doubt
How to change localhost with myAppliaction in the URL
running Apache and Tomcat together
How access web application use root context?
Apache Tomcat Integration