Solved

RewriteMap causing error: not allowed here

Posted on 2004-08-24
1
861 Views
Last Modified: 2011-10-03
Hello.

I tried the following:

     RewriteEngine on
     RewriteMap sessionsTab /home/webadmin/domain.com/html/sessions.txt
     RewriteCond !${sessionsTab:%{REMOTE_ADDR}} =true
     RewriteRule /* /Not_Logged_In.html [R,L]

and get the following error:

    "RewriteMap not allowed here"

I am running Apache 1.3.27 on Linux Redhat 9 in a virtual enviroment (I host more than one domain there, using one IP address).  I have root access.

How can I get rid of the error?


Thanks!
0
Comment
Question by:hankknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 36

Accepted Solution

by:
Zyloch earned 500 total points
ID: 11882408
Ah, well, RewriteMap, you should put in your httpd.conf file in either the second server section or the third virtual section, at least that's what it says. Then, you can use the RewriteCond rules in .htaccess across your server (which is why my other example had two RewriteEngine)
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question