ASP.NET现在是否能运行在LINUX下还不清楚了了

解决方案 »

  1.   

    UNIX下有.htaccess这个文件,用于保护目录。不知道IIS下用ASP.NET的web.config可否实现类似的。
      

  2.   

    look into windows authenticationHOW TO: Implement Windows Authentication and Authorization in ASP.NET
    http://support.microsoft.com/default.aspx?scid=kb%3BEN-US%3BQ323176also see
    Authentication in ASP.NET: .NET Security Guidance
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/authaspdotnet.asp
      

  3.   

    谢谢!用了,但还有一个问题。就是这个只能保护文件夹下面的某些文件,如:aspx文件,并不能保护所有文件,我试了gif、txt等文件就不能得到保护,同样可以浏览。请问如何才能实现保护某个文件夹下面的所有文件?谢谢!
      

  4.   

    you need to add mapping for those extensions to aspnet_isapi dll, but beware, this will affect your website performance, seethe part by [email protected] in (search for keyword "aspnet_isapi.dll"):
    http://www.derkeiler.com/Newsgroups/microsoft.public.dotnet.framework.aspnet.security/2002-07/0565.html