Basically I am trying to configure Access to a specific Folder on my shared hosting and I used this as guide: http://support.microsoft.com/kb/316871
This part of my web.config:
<system.web>
<authorization>
<deny users="?"/>
</authorization>
<authentication mode="Forms">
<forms name="Authlogin" loginUrl="logon.aspx" protection="All" timeout="60" path="." />
</authentication>
So if users is unauthorized then he would be redirected to logon.aspx.
This solution works well on visual studio testing server and user get redirected to logon.aspx,but it doesn’t work at all on my shared hosting ( godaddy ).It seems like rules just ignored.
Any ideas how to make it work…or why it doesn’t work on hosting?
EDIT
I have notice what if I request any any of asp pages(ashx,apsx,asmx) then i would be redirected to logon.apsx.But if i would request for any file (html,txt,jpg and ect) then forms authentication would be ignored.
Same thing happens on local IIS 7.5
I found the problem and solution.The problem what IIS and ASP.NET controlling only asp.net pages.So to enable IIS to look after all files I made this changes in web.config
First I added this in system.webserver
This will enable IIS to work with ASP.NET form authentication(It’s how i understand it=)))
When I added this in same system.webServer
I hope my solution would help to any one with same problem