This is a discussion on No dialog for user/password with .htaccess on apache 1.3.22 for Windows within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello I never receive the dialog for the username and password, what is wrong? This is my actual configuration. ***** httpd....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello
I never receive the dialog for the username and password, what is wrong? This is my actual configuration. ***** httpd.conf ***** # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # # AllowOverride None AllowOverride AuthConfig ***** .htaccess ***** AuthType Basic AuthUserFile "d:/web/.htpasswd" AuthName "Member Area" <limit GET POST> require valid-user </limit> ***** .htpasswd ***** myname:mypassword ..htaccess is located in the directory d:/web/xyz/intern/.htpasswd and this is also the protected directory. |
|
|||
|
Hello I never receive the dialog for the username and password, what is wrong? This is my actual configuration. ***** httpd.conf ***** # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # # AllowOverride None AllowOverride AuthConfig ***** .htaccess ***** AuthType Basic AuthUserFile "d:/web/.htpasswd" AuthName "Member Area" <limit GET POST> require valid-user </limit> ***** .htpasswd ***** myname:mypassword .htaccess is located in the directory d:/web/xyz/intern/ and this is also the protected directory. Thank you for your help. Mike Sorry the first message not correct. |
|
|||
|
Mike wrote:
> Hello > > I never receive the dialog for the username and password, what is wrong? > This is my actual configuration. > > ***** httpd.conf ***** > # > # This controls which options the .htaccess files in directories can > # override. Can also be "All", or any combination of "Options", "FileInfo", > # "AuthConfig", and "Limit" > # > # AllowOverride None > AllowOverride AuthConfig > > ***** .htaccess ***** > AuthType Basic > AuthUserFile "d:/web/.htpasswd" > AuthName "Member Area" > > <limit GET POST> > require valid-user > </limit> > > > ***** .htpasswd ***** > myname:mypassword > > .htaccess is located in the directory d:/web/xyz/intern/ and this > is also the protected directory. > > Thank you for your help. > Mike > > Sorry the first message not correct. > > Did you restart the server after making changes to httpd.conf file. You must restart the webserver after you make changes to the conf file for the webserver to act upon those changes. ;;) |
|
|||
|
Mike wrote:
> Hello > I never receive the dialog for the username and password, what is wrong? > This is my actual configuration. > > ***** httpd.conf ***** > # > # This controls which options the .htaccess files in directories can > # override. Can also be "All", or any combination of "Options", "FileInfo", > # "AuthConfig", and "Limit" > # > # AllowOverride None > AllowOverride AuthConfig where did you put this line in httpd.conf?? <Directory "d:/web/xyz/intern/"> AllowOverride AuthConfig </Directory> > ***** .htaccess ***** > AuthType Basic > AuthUserFile "d:/web/.htpasswd" > AuthName "Member Area" > > <limit GET POST> > require valid-user > </limit> > > ***** .htpasswd ***** > myname:mypassword > > .htaccess is located in the directory d:/web/xyz/intern/ and this > is also the protected directory. what do you mean "protected" here? If you meant having also Access-control other than the user credentials on this directory, you may also want to look at "Satisfy" directive. Xicheng |
|
|||
|
Hi Xicheng
> > Hello > > I never receive the dialog for the username and password, what is > > wrong? This is my actual configuration. > > > > ***** httpd.conf ***** > > # > > # This controls which options the .htaccess files in directories can > > # override. Can also be "All", or any combination of "Options", > > "FileInfo", # "AuthConfig", and "Limit" # > > # AllowOverride None > > AllowOverride AuthConfig > > where did you put this line in httpd.conf?? ---- Yes it is inside of httpd.conf. ---- But without success. > > <Directory "d:/web/xyz/intern/"> > AllowOverride AuthConfig > </Directory> > > > ***** .htaccess ***** > > AuthType Basic > > AuthUserFile "d:/web/.htpasswd" > > AuthName "Member Area" > > > > <limit GET POST> > > require valid-user > > </limit> > > > > ***** .htpasswd ***** > > myname:mypassword > > > > .htaccess is located in the directory d:/web/xyz/intern/ and this > > is also the protected directory. > > what do you mean "protected" here? If you meant having also > Access-control other than the user credentials on this directory, you > may also want to look at "Satisfy" directive. > ---- Protectet means, that this directory should be protectetd, d:/web/xyz/intern/ ==> www.xyz.com/intern > Xicheng > Best Regards Mike |
|
|||
|
Hi David
> Did you restart the server after making changes to httpd.conf file. You > must restart the webserver after you make changes to the conf file for the > webserver to act upon those changes. ;;) ---- Yes, I always restarted the Apache server after a modification inside of httpd.conf Thank you and Best Regards Mike |
|
|||
|
Mike wrote:
Hello > where did you put this line in httpd.conf?? > > <Directory "d:/web/xyz/intern/"> > AllowOverride AuthConfig > </Directory> My meaning was that only the .htaccess file must be inside the directory that should be password protectet. Or is it necessary to have for each protected directory a additional entry insysde of httpd.conf like the following? # # This should be changed to whatever you set DocumentRoot to. # <Directory "d:/web/xyz/intern/"> Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig Order allow,deny Allow from all </Directory> Mike |
|
|||
|
Hi
I added the following entry to httpd.conf # New entry for xyz <Directory "C:/web/xyz/intern"> Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig </Directory> Now it works Thanks for your hint Mike |