head	1.15;
access;
symbols;
locks
	nobody:1.15; strict;
comment	@# @;


1.15
date	99.10.01.17.56.15;	author nobody;	state Exp;
branches;
next	1.14;

1.14
date	99.10.01.17.55.18;	author nobody;	state Exp;
branches;
next	1.13;

1.13
date	99.10.01.17.53.50;	author nobody;	state Exp;
branches;
next	1.12;

1.12
date	99.04.29.19.40.10;	author nobody;	state Exp;
branches;
next	1.11;

1.11
date	99.04.29.13.25.54;	author nobody;	state Exp;
branches;
next	1.10;

1.10
date	99.04.21.18.38.15;	author nobody;	state Exp;
branches;
next	1.9;

1.9
date	99.04.16.23.03.55;	author nobody;	state Exp;
branches;
next	1.8;

1.8
date	99.04.01.18.38.40;	author nobody;	state Exp;
branches;
next	1.7;

1.7
date	99.03.23.20.19.30;	author nobody;	state Exp;
branches;
next	1.6;

1.6
date	99.03.15.19.08.11;	author nobody;	state Exp;
branches;
next	1.5;

1.5
date	99.03.15.18.46.20;	author nobody;	state Exp;
branches;
next	1.4;

1.4
date	99.03.12.01.06.17;	author nobody;	state Exp;
branches;
next	1.3;

1.3
date	99.03.12.01.05.57;	author nobody;	state Exp;
branches;
next	1.2;

1.2
date	99.03.12.01.03.15;	author nobody;	state Exp;
branches;
next	1.1;

1.1
date	99.03.12.01.02.45;	author nobody;	state Exp;
branches;
next	;


desc
@null
@


1.15
log
@null
@
text
@IDependOn-Set: 1
IDependOn-Set: 2
IDependOn-Set: 46
IDependOn-Set: 47
IDependOn-Set: 51
IDependOn-Set: 7
LastModifiedSecs: 938800575
Parent: 7
SequenceNumber: 14
Title: mod_rewrite doesn't seem to be able to change my mod_jserv URL's
Part: 0
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 921200700
Type: html
Lines: 5
The trick is getting mod_rewrite to execute before mod_jserv. This needs to be done at Apache compile time by having the mod_rewrite module compiled into Apache after the mod_jserv module.
<P>
If you are using the DSO version of Apache, try changing the LoadModule order. If that does not work, then you will probably have to compile a static version of Apache in order to get it to work properly.
<P>
If the above does not work, try reversing the order of the compiling/loading and append to this FAQ which order worked for you.
EndPart: 0
Part: 1
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 921209460
Type: monospaced
Lines: 18
----------
From: <tom.howland@@us.pwcglobal.com>
To: Java Apache Users <java-apache-users@@list.working-dogs.com>
Subject: RE: mod_rewrite and JServ
Date: Thu, Mar 11, 1999, 7:20 PM


There is an evaluation order in apache such that, if you want to use
mod_rewrite with mod_jserv, you must ensure that the reference to mod_jserv
is *before* the reference to mod_rewrite. What this means is that in the
apache distribution, you have to modify the file
/usr/local/src/apache_1.3.4/src/Configuration so that the line

     AddModule modules/jserv/mod_jserv

appears before the line

     AddModule modules/standard/mod_rewrite.o
EndPart: 1
Part: 2
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 921523560
Type: monospaced
Lines: 7

You have to get sure that mod_rewrite is excuted before mod_jserv. Have
alook in
'modules.c' and check that jserv is before rewrite_module. If not,
correct and recompile apache.

Jean-Luc Rochat
EndPart: 2
Part: 3
Author-Set: gbevin@@thunderstorms.org
HideAttributions: 1
LastModifiedSecs: 925392300
Type: 
Lines: 13
This is how I done it :

I compiled mod_jserv and mod_rewrite statically into apache.
Then in the httpd.conf file you have to take care that the line

AddModule mod_jserv.c

comes before

AddModule mod_rewrite.c

it doesn't have to be done in the source dir as suggested above.

EndPart: 3
Part: 4
Author-Set: fewayne@@facstaff.wisc.edu
HideAttributions: 1
LastModifiedSecs: 938800575
Type: monospaced
Lines: 19
another hint: i found that while i could apply rewrite rules
in a virtual server, and could access servlets through a virtual
server, i couldn't do both together.  only the rewrite rules in
the main server part of httpd.conf seem to fire servlets.

example:

(in httpd.conf:)
# every page access under /foo/ fires AServlet, with the path part of the
# URL available via request.getQueryString()
RewriteRule ^(/foo/.*) "/servlets/EDU.wisc.soils.package.AServlet?$1" [PT]

(in servlets.properties:)
servlet.EDU.wisc.soils.package.AServlet.initArgs=siteRoot=/apachedir/htdocs

(in the servlet code:)
docRoot = new File(config.getInitParameter("siteRoot"));

etc., etc.
EndPart: 4
@


1.14
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 938800518
d9 1
a9 1
SequenceNumber: 13
d85 1
a85 1
LastModifiedSecs: 938800518
d87 5
a91 2
Lines: 16
another hint: i found that while i could apply rewrite rules in a virtual server, and could access servlets through a virtual server, i couldn't do both together.  only the rewrite rules in the main server part of httpd.conf seem to fire servlets.
@


1.13
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 938800430
d9 1
a9 1
SequenceNumber: 12
d85 2
a86 1
LastModifiedSecs: 938800430
@


1.12
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 925392354
d9 1
a9 1
SequenceNumber: 11
d82 22
@


1.11
log
@null
@
text
@a63 1
DateOfPart: 1999-Apr-29  6:25am
d65 2
@


1.10
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 924719895
d9 1
a9 1
SequenceNumber: 10
d62 19
@


1.9
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 922991920
d9 1
a9 1
SequenceNumber: 9
a61 11
Part: 3
Author-Set: anonymous
HideAttributions: 1
LastModifiedSecs: 922991880
Type: 
Lines: 4
Subcategories:


Answers in this category:
EndPart: 3
@


1.8
log
@null
@
text
@a63 1
DateOfPart: 1999-Apr-01 10:38am
d65 2
@


1.7
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 922220370
d9 1
a9 1
SequenceNumber: 8
d64 1
a65 1
Type: directory
@


1.6
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 921524891
d9 1
a9 1
SequenceNumber: 7
a12 1
DateOfPart: 1999-Mar-15 11:08am
d62 10
@


1.5
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 921523579
d9 1
a9 1
SequenceNumber: 6
d13 2
d17 2
a18 2
Lines: 4
The trick is getting mod_rewrite to execute before mod_jserv. This needs to be done at Apache compile time by having the mod_rewrite module compiled into Apache before the mod_jserv module.
d22 1
a50 1
DateOfPart: 1999-Mar-15 10:46am
d52 1
@


1.4
log
@null
@
text
@d5 1
d7 1
a7 1
LastModifiedSecs: 921200777
d9 1
a9 1
SequenceNumber: 3
a12 1
DateOfPart: 1999-Mar-11  5:06pm
d21 39
@


1.3
log
@null
@
text
@d6 1
a6 1
LastModifiedSecs: 921200757
d8 1
a8 1
SequenceNumber: 2
d12 3
a14 1
DateOfPart: 1999-Mar-11  5:05pm
@


1.2
log
@null
@
text
@d6 1
a6 1
LastModifiedSecs: 921200595
d8 1
a8 1
SequenceNumber: 1
d10 9
@


1.1
log
@null
@
text
@d3 1
d6 1
a6 1
LastModifiedSecs: 921200564
d8 2
a9 2
SequenceNumber: 0
Title: New Item
@
