#1 2015-01-29 14:43:27

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

secSSL and RootRedirect

Hi AB
after getting secSSL to work i have the Problem that rootredirect does not work with secSSL.

Can you fix this ?


Rad Studio 12.1 Santorini

Offline

#2 2015-01-29 14:44:07

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,662
Website

Re: secSSL and RootRedirect

What is the exact problem?
Do you have an idea how to fix?

Online

#3 2015-01-29 15:04:44

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Re: secSSL and RootRedirect

To me the RootRedirect did not work when the URL already registered (with secSSL and without secSSL), check again registered URL list.


Esteban

Offline

#4 2015-01-29 16:59:33

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,662
Website

Re: secSSL and RootRedirect

What "did not work" means?
Do you have an idea how to fix it?

Online

#5 2015-01-29 17:22:32

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: secSSL and RootRedirect

Hi AB,

i maybe i found the error, look at TSQLHttpServer.RootRedirectToURI there you call AddUrl with Https set to false.

I call this function to redirect url to my mvvm site /service/default but with https this does not redirekt!

Is there a possibilty to automatically set Https to true if server has secSSL ?

ty


Rad Studio 12.1 Santorini

Offline

#6 2015-01-29 19:15:03

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: secSSL and RootRedirect

I manually set the Parameter to true and th redirection works as desired.

BUT this is no solution. Cause i have to switch it every compilation.
This has to depend on secSLL or other Settings.

Last edited by itSDS (2015-01-30 08:21:29)


Rad Studio 12.1 Santorini

Offline

#7 2015-01-30 09:54:45

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,662
Website

Re: secSSL and RootRedirect

We just added an optional aHttps parameter to TSQLHttpServer.RootRedirectToURI() method to handle separate http/https root redirection as expected.
We also did some refactoring of mORMotHTTPServer.pas unit for better log and error process.
See http://synopse.info/fossil/info/87ec66d4ce

Thanks for the feedback!

Online

Board footer

Powered by FluxBB