You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@worldgate.com> on 1998/02/20 05:57:45 UTC

apache 1.3b5: mod_rewrite dosen't evaluate variables

---------- Forwarded message ----------
>Path: scanner.worldgate.com!logbridge.uoregon.edu!nntp2.dejanews.com!nnrp1.dejanews.com!not-for-mail
>From: slive+news@finance.commerce.ubc.ca
>Newsgroups: comp.infosystems.www.servers.unix
>Subject: apache 1.3b5: mod_rewrite dosen't evaluate variables
>Date: Thu, 19 Feb 1998 19:59:24 -0600
>Organization: Deja News - The Leader in Internet Discussion
>Lines: 27
>Message-ID: <6c...@nnrp1.dejanews.com>
>NNTP-Posting-Host: postnews.dejanews.com
>X-Article-Creation-Date: Fri Feb 20 01:59:24 1998 GMT
>X-Originating-IP-Addr: 137.82.66.73
>X-Http-User-Agent: Mozilla/4.04 [en] (X11; I; SunOS 5.6 sun4u)
>Xref: scanner.worldgate.com comp.infosystems.www.servers.unix:39037     

I have the following in my httpd.conf (not in any directory config section):

RewriteLog "/usr/local/apache/logs/rewrite.log"
RewriteLogLevel 9

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon$
RewriteRule ^/.*        -       [F]

But when I look in rewrite.log I see

137.82.66.73 - - [19/Feb/1998:17:49:41 -0800]
[www.commerce.ubc.ca/sid#8088f0c][rid#80a546c/initial] (4) RewriteCond:
input='' pattern='^EmailSiphon$' => not-matched

and in fact, after experimenting, I have discovered that input='' no matter
what variable I put in the RewriteCond.  It seems like %{} variables are not
being properly evaluated.

Can Anyone suggest what I am doing wrong here?

--
Joshua Slive
slive+news@finance.commerce.ubc.ca

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading


RE: apache 1.3b5: mod_rewrite dosen't evaluate variables

Posted by Marc Slemko <ma...@worldgate.com>.
Erm... is it a bug with ap_cpystrn or with how it is used?

On Fri, 20 Feb 1998, Lars Eilebrecht wrote:

> According to Marc Slemko:
> 
> [.fwd.]
> >  and in fact, after experimenting, I have discovered that input='' no matter
> >  what variable I put in the RewriteCond.  It seems like %{} variables are
> >  not being properly evaluated.
> 
> ap_cpystrn() seems to have an off by one error... see PR#1847.
> (PR#1843 is about the same problem with mod_rewrite).
> 
> 
> ciao...
> -- 
> Lars Eilebrecht                        - Computers are not intelligent.
> sfx@unix-ag.org                           - They only think they are.
> http://www.si.unix-ag.org/~sfx/
> 


RE: apache 1.3b5: mod_rewrite dosen't evaluate variables

Posted by Lars Eilebrecht <La...@unix-ag.org>.
According to Marc Slemko:

[.fwd.]
>  and in fact, after experimenting, I have discovered that input='' no matter
>  what variable I put in the RewriteCond.  It seems like %{} variables are
>  not being properly evaluated.

ap_cpystrn() seems to have an off by one error... see PR#1847.
(PR#1843 is about the same problem with mod_rewrite).


ciao...
-- 
Lars Eilebrecht                        - Computers are not intelligent.
sfx@unix-ag.org                           - They only think they are.
http://www.si.unix-ag.org/~sfx/