[Mono-list] Web.config Authentication problems
Rob
motorhead9876 at yahoo.com
Mon Sep 17 09:24:10 EDT 2007
Anyone? I still haven't figured this one out. It seems like the auth cookie isn't getting set. It works with windows/IIS, but not on my linux/Mono system.
Thanks
Rob <motorhead9876 at yahoo.com> wrote: My configuration works fine on IIS/Windows, but on linux/Mono I can't get past the login page. I keep getting a 302 and bounced back to my login page after a successful login.
Web.config:
<authentication mode="Forms">
<forms
loginUrl="login.aspx"
defaultUrl="index.aspx"
name="CookieAuth"
protection="All"
slidingExpiration="true"
timeout="20" />
</authentication>
<authorization>
<deny users="?" verbs="GET,POST" />
</authorization>
</system.web>
These are needed so the login page has access to the css and javascript files (not needed on IIS):
<location path="js">
<system.web>
<authorization>
<allow users ="*" />
</authorization>
</system.web>
</location>
<location path="style">
<system.web>
<authorization>
<allow users ="*" />
</authorization>
</system.web>
</location>
In my Apache2 httpd.conf file:
Alias /MyApp "/home/me/MyApp"
AddMonoApplications MyApp "/Satube:/home/me/MyApp"
MonoServerPath MyApp /usr/local/mono-1.2.4/bin/mod-mono-server2
<Location /MyApp>
MonoSetServerAlias MyApp
SetHandler mono
Order allow,deny
Allow from all
</Location>
Can anyone tell me what I'm doing wrong? Thanks.
Rob
---------------------------------
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070917/7fff44a3/attachment.html
More information about the Mono-list
mailing list