?
Solved

..htaccess and change text "please type your username and password"

Posted on 2002-05-08
4
Medium Priority
?
242 Views
Last Modified: 2010-05-18
How to change the text "please type your username and password" in the .htaccess pop-up?

Jeffeny
0
Comment
Question by:harryv
[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
  • 3
4 Comments
 
LVL 15

Expert Comment

by:samri
ID: 6996256
Harryv,

The keyword that you are looking for is "AuthName".

Please drop by Apache's website on more detailed discusion on Authentication, Authorization, and Access Conrol.

http://httpd.apache.org/docs/howto/auth.html

Following is and example (taken from that site too.)

AuthType Basic
AuthName "By Invitation Only"
AuthUserFile /usr/local/apache/passwd/passwords
Require user rbowen sungo

This would cause the pop-up box to have "By Invitation Only" displayed, followed by Username, and Password input field.

I hope this helps.

cheers.
0
 

Author Comment

by:harryv
ID: 6996302
The AuthName "By Invitation Only" is shown by "realm"
What I mean is the words "please type your username and password".

Jeffeny
0
 
LVL 15

Accepted Solution

by:
samri earned 300 total points
ID: 6996457
I think I got what you really want,  Instead of a plaint "Enter username for <Realm> at <Servername:port>", you need to display something more informative.

According to Apache's documentation, it is browser-dependent, and nothing to do with server side:

I'm not sure whether it is possible with BasicAuthentication.  Unless you know JavaScript for example, you can develop your own Authentication pop-up box, which pretty much up to your preferences.


Take a look at this URL, and the section.
http://localhost:8000/manual/howto/auth.html
How can I change what the password box looks like?

The dialog that pops up for the user to enter their username and password is ugly. It contains text that you did not indicate that you wanted in there. It looks different in Internet Explorer
and Netscape, and contains different text. And it asks for fields that the user might not understand - for example, Netscape asks the user to type in their ``User ID'', and they might not
know what that means. Or, you might want to provide additional explanatory text so that the user has a better idea what is going on.

Unfortunately, these things are features of the browser, and cannot be controlled from the server side. If you want the login to look different, then you will need to implement your own
authentication scheme. There is no way to change what this login box looks like if you are using basic authentication.
0
 
LVL 15

Expert Comment

by:samri
ID: 6997948
Correction:  The URL should be;
http://httpd.apache.org/docs/howto/auth.html
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

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