ไฟล์เดิม
# $Id: .htaccess,v 1.1 2003/06/20 00:18:30 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>
# Fix certain PHP values
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>
ไฟล์ใหม่ .htaccess
/********************************************************************************************************/
AuthUserFile /domains/watduang.com/public_html/shop/dshop/admin//.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic
<limit GET POST>
require valid-user
</limit>
และต้องสร้าง ไฟล์ .htpasswd
admin:ad14582QFsdfdsfgU5l3gX6
วันจันทร์ที่ 5 สิงหาคม พ.ศ. 2556
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)




0 ความคิดเห็น:
แสดงความคิดเห็น