Solved

RewriteMap causing error: not allowed here

Posted on 2004-08-24
1
815 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
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now