File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 751
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
It's not a secret anymore!