-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

I compiled in mod_rewrite into my apache executable.  Then I added some
mod_rewrite directives like the ones you listed below, but no matter
what my apache won't start up.  I checked the core file and it was seg
faulting.  Here is one example that I tried in one of my virtual hosts.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/test\.html /index.html
</IfModule>

I also tried entire directories like the ones below.  If I comment out
the RewriteRule it doesn't crash.  Any suggestions?

Jonathan Tew

Bernie Bernstein wrote:
> 
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
> 
> >Say I have a domain http://www.mydomain.com and I want to have all the
> >urls that start with /thisdir call a specific servlet as a handler.
> >This servlet can then look at the path requested and take the
> >appropriate action.
> >
> >So http://www.mydomain.com/thisdir/status/ would call the servlet as
> >would http://www.mydomain.com/thisdir/update/ etc.
> >
> >I want the one servlet to handle requests for all those paths.
> >
> 
> ... in httpd.conf ...
> 
> <IfModule mod_rewrite.c>
> RewriteEngine On
> # anything else gets appended to /tc/meta
> RewriteRule ^(.*) /myzone/myservlet$1 [PT]
> </IfModule>
> 
> Set up the zone "myzone" which includes servlet "myservlet" and then all
> requests will get passed through that servlet.
> 
> eg.
> 
> http://www.mydomain.com/thisdir/status/
> 
> will expand to:
> 
> http://www.mydomain.com/myzone/myservlet/thisdir/status/
> 
> and
> 
> http://www.mydomain.com/
> 
> expands to:
> 
> http://www.mydomain.com/myzone/myservlet
> 
> IMPORTANT: Be sure that mod_jserv is loaded before mod_rewrite.
> 
> Bernie Bernstein
> Talk City Inc.
> voice: 408-871-5320                   Join the Conversation.
> email: [EMAIL PROTECTED]      http://www.talkcity.com/
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to