John Frailey wrote:
> I received a couple votes for mod_rewrite... but if I understand mod_rewrite
> correctly, does it send a redirect back to the client, and redirect the
> client with the new URL ??
It can work like this but you can also get the result processed by other
modules directly.
If Apache is compiled withous DSO, the module names order at compilation is
important.
RewriteRule ^/servlet/(.*)$ /jserv%1/$1 [PT]
Jean-Luc
>
>
> That would change the url in the browser from:
> http://<domain>.com/abc
> to
> http://<domain>/store?data=<>
>
> This would be undesirable if this is truelly the way mod_rewrite works.
> If it all stays at the server... it will work very well...
>
> >>-----Original Message-----
> >>From: Umesh R. Patil <[EMAIL PROTECTED]>
> >>To: 'John Frailey' <[EMAIL PROTECTED]>
> >>Cc: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
> >>Date: Thursday, March 11, 1999 12:09 AM
> >>Subject: RE: / alias
> >>
> >>
> >>>URL rewriting may be a solution for you:
> >>>
> >>>At the end of httpd.conf add:
> >>>-----------------------------
> >>>
> >>></IfModule>
> >>>
> >>>LoadModule rewrite_module modules/ApacheModuleRewrite.dll
> >>>
> >>><IfModule mod_rewrite.c>
> >>> RewriteEngine on
> >>> RewriteRule ^/(.*) /myZone/slash?data=$1 [PT]
> >>></IfModule>
> >>>
> >>>What this does is rewrite urls so that your servlet gets invoked
> >>>with anything following the first slash in the URI.
> >>>
> >>>I haven't tested this but it could get you going...
> >>>
> >>>Umesh.
> >>>
> >>>On Thursday, March 11, 1999 9:05 AM, John Frailey
> >[SMTP:[EMAIL PROTECTED]]
> >>>wrote:
> >>>> This may sound like a simple request... but I am having all kinds of
> >>trouble
> >>>> figuring
> >>>> out a way to do this:
> >>>>
> >>>> we host many sites. we build the same servlets that are used among
> >many
> >>>> sites.
> >>>> depending on the site, we may write to different database tables, or
> >>perfom
> >>>> different reads from files or db.
> >>>>
> >>>> my problem is this... I am trying to make a url that looks clean. that
> >is
> >>>> just our
> >>>> domain, and then the hosted customer name like so:
> >>>> http://ourdomain.com/abc
> >>>> http://ourdomain.com/xyz
> >>>>
> >>>> I want to make my servlet aliased to /
> >>>> this would allow me to parse the abc and xyz appropriately. I
> >realize
> >>>> that all
> >>>> request at that domain will go through that servlet. thats ok. I have
> >set
> >>up
> >>>> a domain
> >>>> just for that reason.
> >>>>
> >>>> I have set up a zone called slash with a mounting point of / but it
> >seams
> >>>> that the
> >>>> alias name starts after the slash. I use several different servlet
> >>engines,
> >>>> (all with
> >>>> apache) and can accomplish this with what they call a mapping. (Jrun
> >>term)
> >>>> Set up
> >>>> a map for my servlet name ie ( store.class -> /) to slash.
> >>>>
> >>>> Is there any idea's on how to get this same functionality with jserv.
> >>>> Everything else
> >>>> works so good... I they really did a great job of cleaning up the
> >>install...
> >>>> went
> >>>> perfect first time through...
> >>>>
> >>>> Thanks for any ideas...
> >>>>
> >>>> p.s. we also offer another option to our cust. that let them get a dns
> >>>> entry. this would
> >>>> then look like :
> >>>> abc.<ourdomain>.com/store (servlet here is store)
> >>>> but this requires a new dns entry, and a KILHUP on dns. we would
> >like
> >>to
> >>>> have a realtime, non disruptive way like above for an
> >alternative...
> >>>>
> >>>>
> >>>>
> >>>> ----------------------------------------------------------------
> >>>> To subscribe: [EMAIL PROTECTED]
> >>>> To unsubscribe: [EMAIL PROTECTED]
> >>>> Archives and Other: <http://www.working-dogs.com/>
> >>>> Problems?: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >
> >Your request cannot be processed because you are already a subscriber to
> >the list.
> >
> >If you believe you received this message in error, you can contact the
> >list administrator at:
> >
> > Jon S. Stevens <[EMAIL PROTECTED]>
> >
> >
>
> ----------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://www.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://www.working-dogs.com/>
Problems?: [EMAIL PROTECTED]