LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-29-2006, 10:05 PM   #1
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Rep: Reputation: 30
tomcat and apache mod_jk2


Hi,

I have tomcat and apache running together using mod_jk2
I can access my webapp which is located in Tomcat_Home/webapps/ folder like this
http://www.mydomain.net/WEB/AAA

How can I configure it so I can access it directly by http://www.mydomain.net?

I edited httpd.conf file and specified
DocumentRoot /home/mylogin/someStuffHere/WEB/AAA

but it displays tomcat home page

I've spend a lot of time of figuring this one out but do not see how it can be solved.

thanks
 
Old 04-30-2006, 04:08 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It sounds like you have Apache/mod_jk2 configured correctly, since it's passing your request through to Tomcat. The Tomcat main page that is displayed is under /tomcat-install-path/webapps/ROOT - you could modify this similar to the suggestion at http://wiki.apache.org/tomcat/HowTo#...9ced33c9506ffe to redirect users to your webapp.
 
Old 05-01-2006, 01:42 AM   #3
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
Hello and thanks for your reply,

the link you provided provides welcome files but how do I specify a differed directory that I want to read jsps from?
I did not see it on that page.

Thanks.
 
Old 05-01-2006, 06:08 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The info on the page describes changing the welcome files to one that redirects to your webapp - that way the initial URL is just the domain name. If you want all of your URLs for the webapp to be off the domain name instead of under the webapp I think you'll need to modify your webapp to be ROOT and remove everything under webapp/ROOT.

I haven't tried modifying the webapp/ROOT app that way because none of my clients have needed it set up that way. Usually, having the main page as the domain and then redirecting to the webapp is sufficient.
 
Old 05-01-2006, 10:41 AM   #5
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
Hello,
I thought it would be the right way to map my app with a domain name without redirection from ROOT.
thanks
 
Old 05-01-2006, 02:21 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It may be possible but I don't know a setting in the web.xml or server.xml files that would allow it. It's rare that the only thing provided by a domain is a webapp without anything else. Usually the main content of the domain is at the root of the webserver (including the documentation) and the application is provided underneath that.
 
Old 05-02-2006, 12:30 PM   #7
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
Hello,

actually it is not possible to substitute that index.jsp page since it is mapped with a servlet
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help - mod_jk2 connector / Tomcat 5 / Apache 2 / Redhat 9 sfwhip Programming 5 06-13-2004 01:57 AM
How to connect Tomcat 5 and Apache 2.0.48 using mod_jk2 zhangwf Linux - Networking 1 03-20-2004 08:42 AM
How to connect Tomcat 5 and Apache 2.0.48 using mod_jk2 zhangwf Linux - Newbie 0 03-19-2004 08:21 PM
Trying to integrate Apache w/ Tomcat....error message w/ mod_jk2.so mlhammer Linux - General 2 10-06-2003 03:10 AM
mod_jk2 Apache error ardochoke Linux - Networking 5 08-31-2003 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration