wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Changing the default page in apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Changing the default page in apache" Watch "Changing the default page in apache" New topic
Author

Changing the default page in apache

Vani Bhat
Greenhorn

Joined: Oct 28, 2004
Posts: 15
Greetings,

I want to change the default page in apache to a different one.
eg: http://x.x.x.x will give me the apache page. Instead I want to point to "http://x.x.x.x/welcome.jsp". So whenever user gives the IP http://x.x.x.x, it should give them the page http://x.x.x.x/welcome.jsp.

I appreciate if someone can suggest me how to achieve this.

Thanks in Advance,
VMB
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
Do you have TOMCAT(assumption) installed and configured with Apache?
Vani Bhat
Greenhorn

Joined: Oct 28, 2004
Posts: 15
NO. there is no TOMCAT. We are using Apache 1.3
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
Well, there is your problem.

JSP/Servlet class files require a servlet container to run in. One of the most popular jsp/servlet containers on the market is the Jakarta Tomcat container.

JSP/Servlet Container

Some servers use the Apache Web Server as the front end and route all jsp/servlet requests to the Tomcat container, also some servers use Tomcat as a standalone web server as well as the Servlet container.

But if you choose the former route you will have to configure apache and tomcat to "talk" to each other.

Documentation on this configuration can be found here:
Installation for Apache 1.3.x

There are some tutorials of this installation can be found on the internet.
Vani Bhat
Greenhorn

Joined: Oct 28, 2004
Posts: 15
Thanks for the reply,
well, I have a application running in weblogic and I have configured this to be directly accessed in apache. So everything runs fine and the app is accessible with this URL. http://<someIP>/<someName>/welcome.jsp. If I just say http://<someIP> then it gives me the default apache page. I just want to change this default page.

Still do I need to make use of Tomcat for this?

Thanks,
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
Oh, okay.

Try this out. Find where the index.html(apache default page), I believ it may be an error directory, remove all of the code and just replace with the following line of code:

source code: index.html



So when a user types in "http://somIP", it should redirect the user to "http://<someIP>/<someName>/welcome.jsp" without the user ever knowing.
Vani Bhat
Greenhorn

Joined: Oct 28, 2004
Posts: 15
Craig, Thank you very much.
I will give a try on this.

Thanks Again,
VMB
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing the default page in apache