This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Pointing a domain name to your app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Pointing a domain name to your app" Watch "Pointing a domain name to your app" New topic

Pointing a domain name to your app

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Hi guys, I'm using JK connector for Apache. I think I am able to make my Apache web server communicate with Tomcat now... Problem is, whenever I access the domain, I'm still pointed to the directory tree instead of the application.

browser -> apacheWS -> tomcat -> application

WS = Web Server

The above diagram is what I need to happen. Aside from that, I don't want my user to see some weird url like, instead I want them to see something like or Something like that...

I have virtual hosts setup in my server.xml, but I can't post them right now since I'm not in the office and my internet connection is too slow to access our server. I know my apache and tomcat is able to communicate because the log file I defined using the <Valve> element inside the <Host> element is being generated when I invole the URL. That's just the problem though, instead of loading my application, invoking the domain would still show the directory tree and not my application. Any idea guys? Thanks!

SCJP 1.5 -
I agree. Here's the link:
subject: Pointing a domain name to your app
Similar Threads
where to map the domain name in Tomcat?
Tomcat Load balancing using mod_rewrite
Integrating Tomcat and Apache - URL Problem
Absolute path for jsp
Why do I have to type in twice to log in with basic authentication?