httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S. Saberi" <>
Subject RE: [users@httpd] mod_rewrite - Error when trying to rewrite one cgi script to another
Date Fri, 09 Jul 2010 21:28:58 GMT



Does the log i provided below provide any clues of why my rewrite is failing?  Can a executable
folder in apache be rewritten ad all?  If so can someeone please provide an example? 


I have really hit a wall with this.



Subject: RE: [users@httpd] mod_rewrite - Error when trying to rewrite one cgi script to another
Date: Wed, 7 Jul 2010 15:08:44 -0700

Alright, finally got the rewrite log to work and here is what it spits out when I attempt
the redirect described earlier:
[07/Jul/2010:15:05:07 --0700] [localhost/sid#6b5148][rid#75a040/initial] (3) [perdir C:/Program
Files/Apache Software Foundation/Apache2.2/scripts/] strip per-dir prefix: C:/Program Files/Apache
Software Foundation/Apache2.2/scripts/from.cgi -> from.cgi
[07/Jul/2010:15:05:07 --0700] [localhost/sid#6b5148][rid#75a040/initial] (3) [perdir C:/Program
Files/Apache Software Foundation/Apache2.2/scripts/] applying pattern '^from.cgi' to uri 'from.cgi'
[07/Jul/2010:15:05:07 --0700] [localhost/sid#6b5148][rid#75a040/initial] (2) [perdir C:/Program
Files/Apache Software Foundation/Apache2.2/scripts/] rewrite 'from.cgi' -> 'to.cgi'
[07/Jul/2010:15:05:07 --0700] [localhost/sid#6b5148][rid#75a040/initial] (3) [perdir C:/Program
Files/Apache Software Foundation/Apache2.2/scripts/] add per-dir prefix: to.cgi -> C:/Program
Files/Apache Software Foundation/Apache2.2/scripts/to.cgi
[07/Jul/2010:15:05:07 --0700] [localhost/sid#6b5148][rid#75a040/initial] (1) [perdir C:/Program
Files/Apache Software Foundation/Apache2.2/scripts/] internal redirect with C:/Program Files/Apache
Software Foundation/Apache2.2/scripts/to.cgi [INTERNAL REDIRECT]
Looks to me like it is trying to do the right thing. why it is giving a 404 is very puzzling
to me.
Hopefully these logs shed some light.

> Date: Wed, 7 Jul 2010 08:18:23 -0400
> From:
> To:
> Subject: Re: [users@httpd] mod_rewrite - Error when trying to rewrite one cgi script
to another
> On Wed, Jul 7, 2010 at 1:41 AM, S. Saberi <> wrote:
> > actually I just put the directive into the httpd.conf file and i see that
> > the log file is being created upon restart of apache.
> >
> > But when I invokde the rewrite nothing gets logged into it.
> >
> > Any guidance is greatly appreciated.
> >
> It's gotta be in the vhost handling the request, and you need to also
> set RewriteLoglevel to something non-zero (like 9)
> -- 
> Eric Covener
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:> for more info.
> To unsubscribe, e-mail:
> " from the digest:
> For additional commands, e-mail:
View raw message