You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Thomas Kaehn <tk...@westend.com> on 2002/07/10 11:06:27 UTC
Apache 2.0.39, sbox and .htaccess files
Hello,
I am using Apache 2.0.39 in conjunction with sbox 1.04 in order
to limit the execution of CGI/PHP-scripts in virtual hosts.
AddHandler php4-handler .php .php4
Action php4-handler /cgi-sbox/sbox
Unfortunately the REMOTE_USER environment variable gets lost, when
limiting access by means of .htaccess. In contrast to this it is
possible to limit the access in the httpd.conf file.
works:
Virtual Host Config:
<Location /dir>
AuthType Basic
AuthName Test
AuthUserFile /path/to/file
Require valid-user
</Location>
doesn't work:
.htaccess:
AuthType Basic
AuthName Test
AuthUserFile /path/to/file
Require valid-user
Is there a special reason, why the REMOTE_USER variable is dropped in
the second case and how can I avoid this behaviour? As there is
supposed to be no difference in calling sbox it seems to be an Apache
topic.
Thanks in advance!
Ciao,
Thomas
--
Thomas Kähn WESTEND GmbH - Aachen und Dueren Tel 0241/701333-0
tk@westend.com Internet & Security for Professionals Fax 0241/911879
WESTEND ist CISCO Systems Partner - Authorized Reseller
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org