Solved

Couldn't get User Name

Posted on 2000-03-05
1
226 Views
Last Modified: 2013-12-23
Hi,
  I setup .htaccess file in my directory.  When I tried to get "REMOTE_USER" in my cgi, I got empty.  I tried to print out all environment variables and I gto nothing about "REMOT_USER".
What is wrong?
Thanks!
0
Comment
Question by:jpchen
1 Comment
 
LVL 2

Accepted Solution

by:
mapc earned 50 total points
ID: 2625838
First in the httpd.conf (assuming apache) AllowOverride AuthConfig
should be set for the directory you're accessing.
Then, you have to create .htaccess which will have:
AuthType basic
AuthName "realm of auth"
AuthUserFile /some/file/path
require valid-user

Then, what you're trying to do will succeed.

And, depends on your version, it may be called by other name, though I've always seen it as: REMOTE_USER
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

785 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