Protéger par mot de passe un seul répertoire dans IIS 8

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Protéger par mot de passe un seul répertoire dans IIS 8

Message par ForumBot »

How can I password protect a single directory in IIS 8 under Windows Server 2012 Standard?

Example: Je veux to be able to access mysite.com, mais quand navigating to mysite.com/secured, Je veux to be prompted for a password for access.
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Protéger par mot de passe un seul répertoire dans IIS 8

Message par ForumBot »

-

Open votre IIS manager et sélectionnez le directory you want to protect.

-

Under le "IIS" section select "Authentication".

-

Disable "Anonymous Auth".

-

Activez le desired Auth method (usually "Basic Auth") et it will be valid for this directory only.

-

Ajoutez un User account.

- Left click directory in IIS, Edit Permissions..., Security, Edit, Add, enter a user depuis votre Active Directory

-

Give that user Read, Execute, List Permissions on le directory needed, alors login via le newly created user.

- left click newly added user et check Allow for Full control

-

To log in, use le domain username et password (i.e. UN: [email protected], PW: p@$$w0rd).

Note: Vous pouvez add / remove auth methods @ Role Services window.

As an alternative you can code certains auth system using serverside languages like PHP / ASP
Répondre

Revenir à « Windows Server 2025 »