James Hart wrote:
> Ignoring whether this is wise or necessary, here's what I'm trying to
> achieve:
> I need to access a servlet by passing Apache the URL http://my.server.url/~/
>
> Here's the problem:
>
> ApJServMount / /root
>
> generates a server config error. Jserv seems to require me to mount my
> servlet zones to a directory:
>
> ApJServMount /servlets /root
>
> I can access it via http://my.server.url/servlets/~/ - but that's not good
> enough.
>
> I can alias /~/ to /servlets/~/ but THAT won't work, since the servlet is
> checking the request path to make sure it's /~/, and if it's not, it's
> sending me an error message. Before you ask, I didn't write the pesky
> servlet in question, and I can't change the source code.
>
> Can this be done?
>
> James
You will need to use the Apache MOD_REWRITE module to do things like this.
There are several articles in the FAQ-O-MATIC about setting this up, including:
http://java.apache.org/faq/?file=46
http://java.apache.org/faq/?file=47
http://java.apache.org/faq/?file=131
Craig McClanahan
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]