Strange SSL redirection behavior

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/19/2010 5:31:41 PM
bob
Gravatar
Total Posts 3

Strange SSL redirection behavior

I have configured SSL on my site, set the flag in the user.config etc, and all that works fine, but I'm seeing odd behavior.  Not sure where this thread should go, so apologies in advance.

My site root is at http://myDomainName.com/Community.  So when I go to URL http://myDomainName.com/Community, I see the default page (http://myDomainName.com/Community/Default.aspx).

If I use https://myDomainName.com/Community, I see it redirect to http://myDomainName.com/Community/Community/Default.aspx, which 404's due to the extra "Community" in the URL.   I see where the URL rewriter does a replace on the https:// for http;//, but where's the extra "Community" comming from?

I've not set any of the pages to require SSL, nor is IIS configured to do so.

Any ideas?  I'm assuming it's something configuration that I may have missed, but in searching the docs and forums, it still eludes me.

My version is from SVN, but I haven't updated since Novell went away.

5/20/2010 6:24:16 AM
Gravatar
Total Posts 18439

Re: Strange SSL redirection behavior

Make sure this is false in Web.config and/or user.config

<add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="false" />

since your root site is not in the root but in a virtual directory "Community" it is not possible to use folder based child sites so this setting needs to be false, if it is set to true it can cause this problem as you describe.

Hope it helps,

Joe

5/20/2010 11:15:22 AM
bob
Gravatar
Total Posts 3

Re: Strange SSL redirection behavior

Thanks Joe-

Okay - I checked web.conf, and it was already false.  I put it in user.conf as well, just to be safe. 

<add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="false" />

But still have the same behavior.

I tried setting them to "true", just in case, but that had no affect either. 

In further testing, any https:// call results in a doubled "/Community", with the exception of anything in the "Secure" directory.

 

Any other suggestions?

5/20/2010 12:03:13 PM
Gravatar
Total Posts 18439

Re: Strange SSL redirection behavior

Did you touch Web.config to make it reload settings after making changes in user.config?

try also adding this to user.config then touch Web.config

<add key="ResolveFullUrlsForMenuItemProtocolDifferences" value="false" />

see if that makes any difference.

3/8/2011 3:15:37 PM
Gravatar
Total Posts 1

Re: Strange SSL redirection behavior

For anyone else who runs into this, I fixed it by adding the following key to my user/web config:

<add key="IsRunningInRootSite" value="false" />

You must sign in to post in the forums. This thread is closed to new posts.