Forum

Redirection

deseven
3 May 2009, 22:33
Hello.
i have this:

Binding {
Port = 8081
MaxRequestSize = 4096
}

Binding {
Port = 443
UseSSL = yes
MaxRequestSize = 4096
ServerKey = C:\serverkey.pem
}


Is there any way to redirect all requests (such as http://mysite.com:8081/) to https://mysite.com/ ?

I tried to use Url Toolkit just like that:
Match http://mysite.com:8081* Redirect https://mysite.com

But it seems that it's not working.
Hugo Leisink
3 May 2009, 23:20
Just add "RequireSSL = yes" to the VirtualHost block voor mysite.com.
deseven
3 May 2009, 23:32
Thank you, but that redirects to the same port
http://mysite.com:8081/ > https://mysite.com:8081/
I need the redirection to the default https port (443)
Hugo Leisink
4 May 2009, 00:04
Ah, yes. The RequireSSL redirect only works when you use the default ports (from 80 for HTTP to 443 for HTTPS).

I've changed this behaviour for 6.13. It will now always redirect to the default HTTPS port.
deseven
4 May 2009, 00:49
thank you one more time
i'll wait for the new version
keep up the good work
Hugo Leisink
4 May 2009, 00:55
Hiawatha v6.13 will be released within a few days, btw.
This topic has been closed.