httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Korey G." <>
Subject RewriteMap not allowed here
Date Mon, 04 Feb 2002 23:29:32 GMT
Hello People,

	Im trying to learn the URL Rewriting Module on Apache
and have come accross a small problem,

I've placed this in to my httpd.conf file as suggested by the URL Rewriting 
and it looks a little like this:
-------------------------------------------------------------Snip Snip
RewriteEngine   on
         Port 80
         DocumentRoot /www/users/s/somewhere/www

         <Directory /www/users/s/somewhere/www/beer>
                 RewriteMap deflector txt:/www/users/s/somewhere/

                 RewriteCond %{HTTP_REFERER} !=""
                 RewriteCond ${deflector:%{HTTP_REFERER}} ^-$
                 RewriteRule ^.* %{HTTP_REFERER} [R,L]

                 RewriteCond %{HTTP_REFERER} !=""
                 RewriteCond ${deflector:%{HTTP_REFERER}|NOT-FOUND} !=NOT-FOUND
                 RewriteRule ^.* ${deflector:%{HTTP_REFERER}} [R,L]

-------------------------------------------------------------Cut Cut

and Have this in my
------------------------------------------------------------- Snip Snip
## -
------------------------------------------------------------- Cut Cut

but I still get the same error when I run configtest
------------------------------------------------------------- Snip Snip
[root@some bin]# ./httpsdctl configtest
Syntax error on line 1068 of /www/httpd/conf/httpd.conf:
RewriteMap not allowed here
------------------------------------------------------------- Cut Cut

Im Running RH Linux 7
Server version: Apache/1.3.20 (Unix)

Some kind or direction would be greatly appreciated
Do I need to install any modules or the like or do I need to place the 
on somewhere else,

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message