----------------------------------------------------------------
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!!!
----------------------------------------------------------------
I (finally) found a way to do this with the rewritemodule
RewriteEngine on
RewriteRule ^/$ /servlets/YourIndexServlet [PT]
this rewrites all URLs with no filename to the servlet.... .jsp do work,
too now
In my previous attempts I forgot the $ which indicates "end of URL".
Can anyone tell me how to put this to the faq??
sk
Stefanos Karasavvidis wrote:
> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
>
> OS: Windows NT4, 2000
> Apache: 1.3.9, 1.3.12
> JServ: 1.0, 1.1
> JDK: 1.2.2, 1.3
>
> I want to use a servlet as a directory index for a web site (the page
> displayed when no file is specified). The command for the apache
> configuration file for this is
> DirectoryIndex filename
> where filename could be something like "index.html" or "/dir/filename"
>
> 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.
>
> I tried to use the RewriteModule but this had various implications with
> other kind of stuff (JSPs had problems and some other stuff I tried)
>
> How could something like this be implemented??
>
> sk
>
> --
> ======================================================================
> Stefanos Karasavvidis
> Electronics & Computer Engineer
> e-mail : [EMAIL PROTECTED]
>
> Multimedia Systems Center S.A.
> Kissamou 178
> 73100 Chania - Crete - Hellas
> http://www.multimedia-sa.gr
>
> Tel : +30 821 88447
> Fax : +30 821 88427
>
> --
> --------------------------------------------------------------
> 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]
--
======================================================================
Stefanos Karasavvidis
Electronics & Computer Engineer
e-mail : [EMAIL PROTECTED]
Multimedia Systems Center S.A.
Kissamou 178
73100 Chania - Crete - Hellas
http://www.multimedia-sa.gr
Tel : +30 821 88447
Fax : +30 821 88427
--
--------------------------------------------------------------
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]