Solved

Howto redirect incoming requests to www.paulsinnema.com to www.paulsinnema.com/opencms/opencms in the configuration of Tomcat 4

Posted on 2004-04-10
4
214 Views
Last Modified: 2010-03-04
Hi,

I've installed Tomcat 4 together with OpenCMS on my webserver PC.
Now when I type 'www.paulsinnema.com I get the standard Tomcat greeting page (located at ROOT).
I would like OpenCMS to be the standard start of my site, so when I type www.paulsinnema.com I get redirected to www.paulsinnema.com/opencms/opencms.

I've been struggling with this for a day now and don't seem to be able to find the answer in the documentation of Tomcat.

My question is simple: How can I configure this in Tomcat? But I fear I'll have to do a lot to accomplish this.

Paul.
0
Comment
Question by:Paul Sinnema
4 Comments
 
LVL 2

Accepted Solution

by:
tcmv earned 250 total points
ID: 10810127
Why not just use a very simple html redirect?

In index.html or .htm or .php or whatever ... put this one line in the <head>  ... </head> section:

<meta http-equiv="refresh" content="0;URL=/opencms/opencms">

That way, when people go to www.paulsinnema.com, their browsers will request the root ( / ) page, which serve that index page, and their browsers will automatically refresh to the other URL.  The "0" in that meta line says to do the refresh immediately.  You could make it a "10" and have the index page give a redirect notice, only to be refreshed in 10 seconds.

Hope that helps...

-tcmv
www.mvix.net
0
 

Expert Comment

by:paulsinnema
ID: 10812408
Yep,

I had already done that. It also gives me the possibility to code some in the index.html. For instance if I wanted to go to different Sites on the requesting URL, I could code that there.

Thanks, It's not quit the solution I asked for, but it's workable.

Paul.
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 11761000
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:

    ACCEPT: tcmv

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Periwinkle
EE Cleanup Volunteer
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question