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

Anyone?

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.