httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <krist.vanbes...@gmail.com>
Subject [users@httpd] How to remove an environment variable...
Date Fri, 18 Dec 2009 13:54:14 GMT
Hello all,

I have a PHP content management system,  Drupal on a apache 2.2
server. For the moment we use a Drupal add on that uses the
webserver's own authentication. So I have set up apache basic auth,
and Drupal asumes that whenever a request comes with the "REMOTE_USER"
variable set, the user is authenticated, and uses the value of
REMOTE_USER to determine who it's talking with.

Now for test purposes I want to offer a way to look at the site as non
authenticated users would see it, but without (for now) removing the
authentication. As the website is still under development I don't want
to allow unauthenticated access yet.

I thought I could do that by just have Apache remove the REMOTE_USER
header. like this:

UnsetEnv REMOTE_USER

However, this does not work.

Also setting REMOTE_USER to something else doesn't work either.
Setting other variables works though.

What are my options here? How can I remove REMOTE_USER?

Krist

-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message