my dog learned polymorphism
The moose likes Tomcat and the fly likes Apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache" Watch "Apache" New topic


Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Hi all,
I have a DNS name as When I type in as , it goes to Apaches default page, but instead I want my application Login.jsp page to pop up.. How do I do that( Am using a context as app in my server.xml of tomcat)
Am using Apache and TOmcat
Thx in advance
Warren Dew
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
Apache is probably showing your local copy of the Apache home page. You need to either reconfigure Apache to point to the home directory you are using, or move your files to the home directory it is pointing to. On Mac OS X, the latter defaults to /Library/WebServer/Documents; where it is on your machine will vary depending on what OS you are running and how you are set up.
Ian Getz

Joined: May 12, 2004
Posts: 6
It's opening whatever the default file is in the Apache DocumentRoot. To change the default location it looks for files, as root if on a nix system, modify the DocumentRoot line in /etc/httpd/conf/httpd2.conf.

Look for a line that looks like this:
DocumentRoot /var/www/html

If you have multiple website running off this server you will have to configure your VirtualHosts file. That's located under /etc/httpd/conf/vhosts/Vhosts.conf on a nix system. If you have only one website (domain name) don't worry about it.

hope this helped,

Linux Registered User <a href="" target="_blank" rel="nofollow">#349319</a>
I agree. Here's the link:
subject: Apache
It's not a secret anymore!