http://206.251.6.246/tools/raydream/
Microsoft isn't so easy. I have no idea what we did there. It's pushing
people inside the firewall to Sting. I have no idea what is supposed to be
happening. I'll have to do some digging. You might try going to Micrsoft's
pages and seeing what's there.
http://www.microsoft.com/vrml/stacks/viewpoint01.htm
-Sean
-----Original Message-----
From: Hammon, Sean [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 11, 1999 5:56 PM
To: Java Apache Users
Subject: mod_rewrite and JServ
I'm sure this has been covered before, but a searching the archives for
mod_rewrite didn't turn up any results.
I've been using mod_rewrite and JServ, but I've not used mod_rewrite to
fiddle with servlet URLs before. We want to put all our servlets in a
package called com.viewpoint.servlets for reasons of tidiness and
consistency. I really don't want URLs /java/com/viewpoint/servlets/Nifty nor
do I want to have to create an alias for each servlet and then have to
remember to create and alias for any new servlets that we create. So I
thought I'd use mod_rewrite to take /java and turn it into
/java/com/viewpoint/servlets (or /java/com.viewpont.servlets. for 1.0) but
it doesn't seem to work. All I'm getting are 404 errors. If I use the full
URL, it works.
Here are my rules:
RewriteRule ^/java(.*) /java/com/viewpoint/servlets$1 [PT]
RewriteRule (.*) $1 [PT]
(Is the second line necessary? I'm hardly a mod_rewrite guru. Ari had it in
his example so I put it in.)
Looking at the rewrite log, my servlet URLs are not in there. It's like
JServ is grabbing the URL and not letting rewrite have a chance. Ari
Halberstadt's pages talk about using AddModule, but either that wasn't the
problem or I put them in the wrong place in my httpd.conf (right before the
jserv and mod_rewrite directives). I've tried rearranging the order in
httpd.conf in which jserv directives and mod_rewrite directive appear, but
that hasn't helped either.
What am I doing wrong?
-Sean
----------------------------------------------------------------
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]