aspose file tools
The moose likes Tomcat and the fly likes Pointing a domain name to your app Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Pointing a domain name to your app" Watch "Pointing a domain name to your app" New topic
Author

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 http://www.mydomain.com:8080/myapp, instead I want them to see something like http://www.mydomain.com or http://www.mydomain.com/actions/searchUser.do?userid=12345. 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
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Pointing a domain name to your app
 
Similar Threads
Absolute path for jsp
Why do I have to type in twice to log in with basic authentication?
Tomcat Load balancing using mod_rewrite
where to map the domain name in Tomcat??
Integrating Tomcat and Apache - URL Problem