Difference between revisions of "Xampp htaccess password"
From MS Computech
(Created page with 'วิธีการ สร้าง htaccess password protect folder xampp windows 1.cmd > C:\xampplite\apache\bin>htpasswd.exe -c -b folder.users msc nc89cbr1 2.copy folder.us…') |
|||
Line 1: | Line 1: | ||
วิธีการ สร้าง htaccess password protect folder xampp windows | วิธีการ สร้าง htaccess password protect folder xampp windows | ||
− | 1.cmd > C:\xampplite\apache\bin>htpasswd.exe -c -b folder.users msc nc89cbr1 | + | 1.cmd > C:\xampplite\apache\bin>htpasswd.exe -c -b folder.users msc nc89cbr1<br> |
− | 2.copy folder.users file ไปที่ C:\xampplite\security | + | 2.copy folder.users file ไปที่ C:\xampplite\security<br> |
− | 3.create file .htaccess ที่ Folder ที่ต้องการ Protect | + | 3.create file .htaccess ที่ Folder ที่ต้องการ Protect<br> |
− | 4..htaccess | + | 4..htaccess<br> |
<pre> | <pre> | ||
AuthName "Authen user" | AuthName "Authen user" |
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
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