Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 51360 invoked by uid 500); 4 Feb 2002 20:27:58 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 51328 invoked from network); 4 Feb 2002 20:27:57 -0000 Received: from redant.dsl.net (65.84.81.6) by daedalus.apache.org with SMTP; 4 Feb 2002 20:27:57 -0000 Received: from korey.awpg.com (208-41-103-146.client.dsl.net [208.41.103.146]) by redant.dsl.net (Postfix) with ESMTP id 18A2815C02A for ; Mon, 4 Feb 2002 15:28:02 -0500 (EST) Message-Id: <5.1.0.14.0.20020204152118.00a7b920@awpg.com> X-Sender: korey@awpg.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 04 Feb 2002 15:29:32 -0800 To: users@httpd.apache.org From: "Korey G." Subject: RewriteMap not allowed here Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 Guide, and it looks a little like this: -------------------------------------------------------------Snip Snip RewriteEngine on SSLDisable Port 80 ServerName www.somewhere.com DocumentRoot /www/users/s/somewhere/www RewriteMap deflector txt:/www/users/s/somewhere/deflector.map 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 deflector.map ------------------------------------------------------------- Snip Snip ## ## deflector.map ## http://www.somewhere.com/redirect.html - http://shop.somewhere.com/redirect.html http://www.somewhere.com ------------------------------------------------------------- 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 RewriteEngine on somewhere else, --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org