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
210 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP temp path missing 4 51
How to find /read Apache log error file ? 5 123
erroer in installing php7.0.7 on an apache 2 machine 4 133
PHP Upload using Uploadify 4 95
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 …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 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