Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 4.7 Webfarm + SSL + redirect loop problemDNN 4.7 Webfarm + SSL + redirect loop problem
Previous
 
Next
New Post
3/17/2008 1:52 PM
 

Hi All,

I'm trying to install DNN in a webfarm. I've a Load Balancer device, two web servers running windows 2003 and one running sql 2005. The application should only be accessed with https.

When a user request a page eg https://www.mydomain.com/default.aspx?tabid=36, the load balancer remove the ssl and redirect the request to one of the web server using http://webservername:8210/default.aspx?tabid=36.

I've only configure two portalalias in the table corresponding the the name and port of my two web servers :

webserver1:8210

webserver2:8210

I didn'd activate the ssl on the ddn side because my web servers are only receiving http request from the load balancer.

I've disable the friendlyurl function.

If i try to get an image eg https://www.mydomain.com/portal/0/logo.gif -> no problem

If i try a page eg https://www.mydomain.com/default.aspx?tabid=72 -> firefox give me 'redirect loop' and ie seems to never end the request

if i try https://www.mydomain.com/keepalive.aspx -> no problem

 

So apparently my problem is coming from the dnn inside redirection mechanism. Do you have any idea/ suggestion to solve this blocking issue ?

Thanks for your precious help

Denis

 

 

 

 

 

 

 
New Post
3/17/2008 5:41 PM
 

Hi Dennis,

about using SSL with DNN you have to enabled it on the settings in DNN.  (Look to Host Settings and Admin settings)

 
New Post
3/18/2008 5:52 AM
 

Hello Mathias,

Can you explain why and how configure the ssl on ddn as the ssl is not handled by the web server but by our load balancing device.

 

 

At the Host ->Configuration Level i see nothing regarding ssl.

At the site->Settings level

SSL Enabled: Do i need to enable this because i don't have ssl certificate on my iis server ?

SSL Enforced : I understand the purpose and will be able to use it when my web site will be working

SSL URL: Do i need to use this setting regarding my network load balancing device ?

Standard URL: Do i need to put a value here ?

 

Thanks

 

 
New Post
9/9/2008 7:38 AM
 

I had a similar problem with a custom ASPX page I put into a module I created.  The DNN URLRewriter will redirect any non-core ASPX to a non-secure page; this includes KeepAlive.aspx.  My custom ASPX writes out images from a database which I use for branding on even secure pages, so what would happen is it would redirect them from an SSL page to a non-SSL page and break the image display. 

Essentially the URLRewriter doesn't like it when ASPX pages are referenced via SSL which are not marked as secure. When it sees this it redirects them back to an HTTP version of the page.  This behaviour happens if you enable SSL Enforced.

A solution, but not viable one, was to deselect the SSL Enforced? option.  This appears to solve it, but why this won't work is that once a user accesses a secured page (Login for example) they will never get switched back to HTTP for the life of their visit.  They will be on SSL from that moment forward.  A solution that I've implemented:

Disable SSL Enforced, and then I created a simple module which I put it at the bottom of all pages which contains the following code in the Page_Load:

' Page Secure?

If Me.Request.IsSecureConnection Then
   
    ' Make sure it's supposed to be secure

    If Not PortalSettings.ActiveTab.IsSecure Then

       ' It's not, so redirect
  
       ' Build
 
       Dim sServerName = Request.ServerVariables("SERVER_NAME")
       Dim sScriptName = Request.ServerVariables("SCRIPT_NAME")
       Dim sQuerystring = Request.ServerVariables("QUERY_STRING")
       Response.Redirect("http://" & sServerName & sScriptName & "?" & sQuerystring)

    End If

Else

    ' Hide module so it doesn't take space

    Me.Visible = False

End If

You can now access KeepAlive.aspx via HTTPs and it won't redirect.  Your pages marked secure stay secure, and pages not marked secure auto-redirect to a non-HTTPS version.  The only side effect from this is that anyone can use HTTPS on a page and of course if you login and use Admin pages it won't switch out of HTTPS, but some people would view this as a good thing since from that point forward Admin is secure.

 For those unfamiliar with how to make a module I've attached it at the following URL:

www.keithadler.info/SSL_Fix.zip

 
New Post
10/9/2008 6:43 AM
 

Hi Denis,

Did you found the solution for your issue? because we also have the same problem with DNN 4.8.2. If you have the solution, would mind to share it with the rest of DNN implementator?.

Many thanks in advanced.

Kind Regards,

Fajar Ramadhany

PS. If anyone else (including the core member) know the solution, would you please share it to the community?


DotNetNuke User Group Netherlands - DNNUGNL

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 4.7 Webfarm + SSL + redirect loop problemDNN 4.7 Webfarm + SSL + redirect loop problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out