Difference between revisions of "Xampp htaccess password"
From MS Computech
| Line 1: | Line 1: | ||
| − | วิธีการ สร้าง htaccess password protect folder xampp windows | + | วิธีการ สร้าง htaccess password protect folder xampp windows<br> |
| − | 1.cmd > C:\xampplite\apache\bin>htpasswd.exe -c -b folder.users msc nc89cbr1<br> | + | 1.cmd |
| + | <pre> | ||
| + | C:\xampplite\apache\bin>htpasswd.exe -c -b folder.users msc nc89cbr1<br> | ||
| + | </pre> | ||
2.copy folder.users file ไปที่ C:\xampplite\security<br> | 2.copy folder.users file ไปที่ C:\xampplite\security<br> | ||
3.create file .htaccess ที่ Folder ที่ต้องการ Protect<br> | 3.create file .htaccess ที่ Folder ที่ต้องการ Protect<br> | ||
Revision as of 15:56, 3 April 2010
วิธีการ สร้าง htaccess password protect folder xampp windows
1.cmd
C:\xampplite\apache\bin>htpasswd.exe -c -b folder.users msc nc89cbr1<br>
2.copy folder.users file ไปที่ C:\xampplite\security
3.create file .htaccess ที่ Folder ที่ต้องการ Protect
4..htaccess
AuthName "Authen user" AuthType Basic AuthUserFile "C:\xampplite\security\folder.users" require valid-user