i have enable basic authentication for my website. but i want to use user name : "basic" and password: "ABCD1234". anyone know how can i setup username and password basic authentication on iis7.
2 Answers
Setup an Windows account on the server (or a domain account if you'll have lots of web servers) with that username and password. Make sure that Windows account has rights to the files/folders that it'll be viewing on the website.
- add windows user account
- set the password never expires
open iis and go to your web site directory
- add .net authoization rules allow your added users
- disable anonymous authentication
- enable basic authentication