0
我累實施httaccess密碼保護我的WordPress網站,用戶需要看到我的網站進入htaccess的用戶名和密碼後,我用下面的代碼,它顯示密碼輸入框,WordPress的使用httaccess密碼保護的網站
我htaccess文件
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
AuthName "Restricted Area"
AuthType Basic
AuthUserFile .htpasswd
AuthGroupFile /dev/null
require valid-user
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 141.101.99.132
deny from 173.245.53.65
deny from 173.245.53.74
但之後進入密碼這表明服務器錯誤消息
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] 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 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
我的網站是http://www.daqta.com/ü sername-test,password-test
有人知道這個問題,請幫幫我。
你能不htaccess的訪問的網站?如果站點在端口80上運行,您是否可以刪除密碼提示並能夠訪問它?你將能夠追蹤到apache配置錯誤或htaccess錯誤。看起來像Apache的嘗試寫入錯誤日誌,但不能 –
是當我刪除htaccess的從網站上的密碼代碼運行正常「AuthName指令‘禁區’ 基礎進行AuthType 的AuthUserFile htpasswd的 目錄AuthGroupFile的/ dev/null的 需要有效─用戶「 –
您在/ var/log/httpd/logs中是否收到任何錯誤消息?我會在access_log看看,以確保你看到訪問請求,然後error_log看到任何額外的細節 –