IE 7 不显示我的自定义 401 页面
我创建了一个 401 页面,该页面是 html,并且位于可访问的目录中。
它可以在 IE 6、Firefox、Safari 中显示,但不能在 IE 7 中显示。
以下是 .htaccess 文件,用于设置 401 页面的目录和位置的身份验证。
KrbServiceName HTTP
KrbMethodNegotiate On
KrbMethodK5Passwd On
#KrbVerifyKDC on
KrbSaveCredentials off
KrbAuthRealms HCCC.CAMPUS
Krb5KeyTab /etc/httpd/keytab
KrbAuthoritative off
AuthType Kerberos
AuthName "Please Login"
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPURL "ldap://domain:389/OU=Campus Users,DC=hccc,DC=campus?userPrincipalName?sub?(objectClass=*)"
AuthLDAPBindDN "CN=ldapuser,CN=Users,DC=hccc,DC=campus"
AuthLDAPBindPassword ldapsearch
require ldap-group CN=Students,CN=Users,DC=hccc,DC=campus
#require ldap-group CN=Faculty,CN=Users,DC=domain,DC=local
#Satisfy any
ErrorDocument 401 /all/401.html
当我转到目录/页面时,它会提示我输入用户名/密码,因为我的帐户不在学生组内,所以它会将我踢到 401 页面,在 Safari、IE6、Firefox 中会出现这种情况,但在 IE7 中会出现这种情况不,它只是显示默认页面(此处的屏幕截图:http://i35.tinypic.com/2qbgmjs .png)
非常感谢任何帮助。
I created a 401 page, which is html, and within an accessible directory.
It displays in IE 6, Firefox, Safari, but not IE 7.
Here is the .htaccess file for setting the authentication on the directory and location for the 401 page.
KrbServiceName HTTP
KrbMethodNegotiate On
KrbMethodK5Passwd On
#KrbVerifyKDC on
KrbSaveCredentials off
KrbAuthRealms HCCC.CAMPUS
Krb5KeyTab /etc/httpd/keytab
KrbAuthoritative off
AuthType Kerberos
AuthName "Please Login"
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPURL "ldap://domain:389/OU=Campus Users,DC=hccc,DC=campus?userPrincipalName?sub?(objectClass=*)"
AuthLDAPBindDN "CN=ldapuser,CN=Users,DC=hccc,DC=campus"
AuthLDAPBindPassword ldapsearch
require ldap-group CN=Students,CN=Users,DC=hccc,DC=campus
#require ldap-group CN=Faculty,CN=Users,DC=domain,DC=local
#Satisfy any
ErrorDocument 401 /all/401.html
When I go to the directory/page, it prompts me for a username/password, since my account is not within the Students group, it kicks me to the 401 page, which it does in Safari, IE6, Firefox, but IE7 it does not, it just shows the default page (screen shot here: http://i35.tinypic.com/2qbgmjs.png)
Any help is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的错误页面必须超过一定大小 显示它,否则显示其内部错误页面。
Your error page has to be over a certain size to show it, otherwise it shows its internal error page.