Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-12-2006, 11:27 AM   #1
Registered: Jun 2003
Posts: 31

Rep: Reputation: 15
apache SetEnvIf problems


I use apache 1.3.29 and i want to make simple authentification in subdirectory.
So i make a cgi script and i want to redirect someone who authenticated correctly.
In httpd.conf i want to use "Request_URI" attribute of SetEnvIf to create a new var if only the user was redirect by my script...

SetEnvIf Request_URI "\/cgi\-bin\/test" local_referal
<Directory "/var/www/htdocs/reserve">
Order deny,allow
Deny from all
Allow from env=local_referal

But it don't work

someone can help me ?
Old 04-13-2006, 08:22 PM   #2
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Try SetEnvIf Request_URI "\/cgi\-bin\/test" local_referal=1


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hello. Problems with apache, (I believe.) $Linuxnoob Fedora 5 04-09-2006 06:51 PM
setenvif module not loading jonathanw Linux - Newbie 0 04-27-2004 11:10 AM
Question about SetEnvIf for audio files(ram, mp3, wma..) hct224 Linux - Newbie 0 02-21-2004 01:05 PM
Apache Problems gdboling Linux - Networking 9 09-01-2003 02:49 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-10-2003 12:16 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration