0

Hi Everyone,

I have a site that keeps asking for the apache server authentication before it gets to the actual login page. How can I eliminate the server authentication pop-up and use the actual login page (which is a form with username and password field) to allow selected user to access the content?

How can I modify the apache config so it doesn't ask me for authentication twice?

Thank you

1
Contributor
2
Replies
16
Views
2 Years
Discussion Span
Last Post by Samyx
0

This is my login form:

<form method="POST" action="/dologin">
<b>Username:</b>  <input type="text" name="PHP_AUTH_USER"><br>
<b>Password:</b>  <input type="password" name="PHP_AUTH_PW"><br>
</TD></TR>
<TR><TD align=center>
<input type="submit" value="Login">
</form>

This is my httpd config:

<Location /dologin.html>
    SetHandler form-login-handler
    AuthFormLoginRequiredLocation c:/webroot/login.html
    AuthFormLoginSuccessLocation c:/webroot/success.html
    AuthFormProvider file
    AuthUserFile conf/passwd
    AuthType form
    AuthName realm
    Session On
    SessionCookieName session path=/
</Location>

I am doinng this, but it still does not just use my custon login, it actually uses the apache authentication and then displays my login page.
What am I doing wrong?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.