develooper Front page | perl.beginners | Postings from February 2002

$ENV{remote_user} - solved

IT Workflow - Terry Honeyford
February 22, 2002 02:01
$ENV{remote_user} - solved
Message ID:

Thanks to all who sugested that I needed to Define an authentication realm
for my CGI directory
That did the trick!


On Thu, Feb 21, 2002 at 02:42:31PM -0000, IT Workflow - Terry
Honeyford wrote:
> but when I use Apache 1.3.22 I don't get as many $ENV's  back from
> the server, in particular the one my script is looking for -
> ($ENV{remote_user})

In apache's httpd.conf, you should enable these lines:

	LoadModule auth_module modules/
	AddModule mod_auth.c

and define an authentication realm for your cgi directory, like this:

	<Directory /var/www/cgi-bin>
		Options ExecCGI
		Order allow,deny
		Allow from all
		AuthType Basic
		AuthName "World Administration"
		AuthUserFile /etc/httpd/conf/htpasswd
		require valid-user
		Satisfy all
	</Directory> Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About