This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache

 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic