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
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

738 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