Solved

Couldn't get User Name

Posted on 2000-03-05
1
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CCNP Exam question 6 39
Changing "From" field - Exchange 2013 5 58
Cisco 3650 switch 1G port to 10G port 6 50
Change subnet - effects on server 14 44
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

752 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