Forms authentication 对umbraco站点的所有请求重定向到登录页面
我只是在本地安装了运行正常的umbraco,并将其复制到测试环境中 突然间,所有对我的umbraco站点的请求,即css、javascript等重定向到login.aspx页面。因此,除非您登录,否则该网站不起作用。如果您使用无css表单登录,那么一切都会恢复正常 Web.config说Forms authentication 对umbraco站点的所有请求重定向到登录页面,forms-authentication,umbraco,Forms Authentication,Umbraco,我只是在本地安装了运行正常的umbraco,并将其复制到测试环境中 突然间,所有对我的umbraco站点的请求,即css、javascript等重定向到login.aspx页面。因此,除非您登录,否则该网站不起作用。如果您使用无css表单登录,那么一切都会恢复正常 Web.config说 <authentication mode="Forms"> <forms name="yourAuthCookie" loginUrl="login.aspx" protectio
<authentication mode="Forms">
<forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" timeout="120" />
</authentication>
<authorization>
<allow users="*" />
</authorization>
换成?没什么区别。这里可能是怎么回事?我的设置是2个配置镜像IIS7 web服务器,查看公共UNC路径。您需要指定
允许用户=“?”
以允许匿名用户
请同时检查该部分的成员资格。。。
My web.config包含:
<membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
<add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
</providers>
</membership>
您需要:
- 创建登录页(与其他任何ASP.NET站点一样)李>
- 在中创建记录 “成员”部分(至少一个成员类型、成员组和 成员)李>
- 定义对内容节点的受限访问(菜单“公共 访问”)
/install/default.aspx?installStep=validatePermissions
or for 4.7+
/install/?installStep=filepermissions
我最近在一个测试翁布拉科的网站上也遇到了这种情况。发现这是由于试图访问的文件被加密存储在磁盘上(在我的测试环境中使用Windows 7)
通过在资源管理器、属性、高级(在“常规”选项卡上)中选择所有站点文件和文件夹进行修复,取消选中“加密内容以保护数据”。然后就可以访问Umbraco上的资源,而无需任何身份验证重定向。这可能是文件权限的问题。作为临时解决方案,请尝试将所有文件设置为“Everyone”-Modify。所有路径都只能通过身份验证访问,因此您必须在web.config中从身份验证中排除js和css,例如:
<configuration>
<location path="css">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>