[Mono-list] Web.config Authentication problems

Rob motorhead9876 at yahoo.com
Fri Sep 14 12:35:28 EDT 2007


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


       
---------------------------------
Catch up on fall's hot new shows on Yahoo! TV.  Watch previews, get listings, and more!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070914/6f55d96b/attachment.html 


More information about the Mono-list mailing list