----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Thanks Bill for that. Much appreciated. I shall look at some of your
points and try them out.
> -----Original Message-----
> From: billo [mailto:[EMAIL PROTECTED]]
> Sent: 27 September 2000 14:40
> To: [EMAIL PROTECTED]
> Subject: Re: Apache + Directories . . .
>
>
> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
>
>
> If you're using ApJServAction to map *.db to your servlet, then I
> think the URLs have to actually exist and map to files.
>
> Sounds like what you want to do is execute a servlet where the URL
> needn't be a real file at all. In that case, I'd recommend doing
> something with path info; make all your URLs start with something (/db
> or whatever), then you'd use a combination of ApJServMount and
> mod_rewrite to map something like:
>
> /db/project/xyz/test
>
> to:
>
> /servlets/db/project/xyz/test
>
> When your servlet runs, "/project/xyz/test" is the PATH_INFO
> and you can do whatever you want with it.
>
> Or you could get even more clever and write a mod_rewrite regexp to
> map *.db to your servlet.
>
> Sample:
>
> RewriteRule ^/db(.*) /servlets/db$1 [PT]
>
> I suppose you could modify mod_jserv to map configurable regular
> expressions to servlets. (In fact that might already be there, but I
> haven't been able to figure it out. In any case, the steps I outline
> above give you that functionality, just in two steps.)
>
> The only tricky bit here is that the LoadModule/AddModule of
> mod_rewrite must come AFTER mod_jserv in your apache config, so that
> the url processing happens in the right order.
>
> Have fun,
>
> billo
>
> From: Alan Williamson <[EMAIL PROTECTED]>
> Date: Wed, 27 Sep 2000 12:12:43 +0100
>
> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
>
>
> Hit upon a wee problem here, and I am not too sure whether its the
> Servlet API at fault here, or whether its Apache doing some
> pre-processing before handing the request over to the
> Servlet Engine.
>
> Basically, i have a URI; say "/project/xyz/test.db", where *.db is
> mapped onto a particular servlet for processing.
>
> Now if that directory physically exists, then everything
> is tickety boo.
>
> However, if the directory path is not there, the Servlet
> is never even
> hit, and not given the opportunity to process the file.
> The browser
> reports back the '404 File Not Found' page.
>
> Whats happenning here? Anyone got any info ?
>
> Thanks
>
> Alan
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search Archives:
>
> <http://www.mail-archive.com/java-apache-users%40list.working-
> dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-
> dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]