use SSL and Force Hostname

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.
6/18/2013 5:24:03 PM
Gravatar
Total Posts 199

use SSL and Force Hostname

I have a site that I am forcing the www.somesite.com

I have an ssl cert on this site also.

If I add the below key to user.config will I also need to update my hostname force to also be https://www.somesite.com

SSLIsAvailable

what is the correct syntax to add the SSL key and should it be in the web or user.config?

If I force ssl will I need to update all images and content to use https:// to not get the "show all content" message to not display

thanks in advance

6/19/2013 7:33:20 AM
Gravatar
Total Posts 18439

Re: use SSL and Force Hostname

Hi,

mojoPortal uses relative urls and protocoless urls internally to avoid such warnings. Most like if you get such warnings it is because of hard coded html for javascript or images in your skin or in your content. These need to be changed to be either relative or protocoless urls.

See the article Solving Browser Security Warnings.

Hope that helps,

Joe

6/19/2013 8:28:56 AM
Gravatar
Total Posts 199

Re: use SSL and Force Hostname

thanks Joe,

what is the preferred method - should I add this key to the user.config or just alter the web.config as you stated?

<add key="SSLIsAvailable" value="true" />

https://www.mojoportal.com/configuring-ssl-in-mojoportal

6/19/2013 8:49:26 AM
Gravatar
Total Posts 18439

Re: use SSL and Force Hostname

any custom appSettings should go in user.config to reduce maintenance during upgrades because during upgrades you should use the new web.config and transfer any customizations such as machinekey from the old one to the new one.

user.config is never touched during upgrades so there is less to maintain if you keep modifications to <appSettings there. But only <appSettings can go in user.config nothing else from web.config can go there.

 

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