ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comความรู้ทั่วไปE-commerce500 Internal Server Error ที่ไฟล์ .htaccess ทำlogin admin osC แล้ว error !
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: 500 Internal Server Error ที่ไฟล์ .htaccess ทำlogin admin osC แล้ว error !  (อ่าน 1740 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
Meen2007
สมุนแก๊งเสียว
*

พลังน้ำใจ: 123
ออฟไลน์ ออฟไลน์

กระทู้: 573



ดูรายละเอียด เว็บไซต์
« เมื่อ: 05 มีนาคม 2009, 15:51:11 »

ดาวน์โหลด template ของ osCommerce มาหลายตัวแต่มันไม่มีระบบ login admin มาให้  เลยต้องสร้างไฟล์ .htaccess และ .htpasswd ขึ้นมาป้องกันที่ระบบ admin พอเรียกหน้า www.myweb.com/catalog/admin/ มันจะมีบล็อคให้ใส่ User-Pass พอใส่และ submit มันก็ขึ้น Error ตลอด ถึงจะ รีเฟรช ซ้ำมันก็ Error ตลอดทุกครั้งไป จะต้องแก้อย่างไรครับ

โค๊ด:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@myweb.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

เขียนไฟล์ .htaccess แบบนี้


โค๊ด:
AuthName "Restricted Area" 
AuthType Basic
AuthUserFile  /domains/myweb.com/public_html/catalog/admin/.htpasswd
AuthGroupFile /dev/null
require valid-user

.htpasswd แบบนี้

โค๊ด:
admin: csdgeurYuo.

ใครรู้วิธีแก้ช่วยทีครับ  :'(
« แก้ไขครั้งสุดท้าย: 05 มีนาคม 2009, 15:56:05 โดย Meen2007 » บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์