----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
On Tue, May 23, 2000 at 05:49:27PM -0400, Joe - Cable wrote:
> I've encountered the same issue! Does anyone know how to do this?
If you don't want to use mod_rewrite (which is as far as I know the best
method), a cheap and cheerful - but effective - solution is just to dump
an index.html in your htdocs like so:
<meta http-equiv="refresh" content="0; URL=http://www.foo.com/servlet/foo">
It should work on most browsers, but if you want a 100% solution work
out mod_rewrite and do it that way.
> >This does not seem to work when the filename points to a servlet (e.g.
> >/servlets/foo). Instead the files of the directory are displayed, and I
> >could not find any error message either in the apaches log files or
> >JServs log files.
Just as an aside, this sounds like you have your servlet zone directory
under htdocs. This is a bad idea, as it doesn't need to be and it's a
potential security risk.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]