wood burning stoves 2.0*
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache" Watch "Apache" New topic
Author

Apache

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Hi all,
I have a DNS name as abc.com When I type in as http://abc.com , 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
blacksmith
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
    
    2
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
Greenhorn

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,
ian


Linux Registered User <a href="http://counter.li.org/" target="_blank" rel="nofollow">#349319</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache