How to redirect all SSL traffic?

Alex Hunsaker badalex at gmail.com
Sun Nov 8 06:45:36 MSK 2009


On Sat, Nov 7, 2009 at 20:37, Glen Lumanau <glen at lumanau.web.id> wrote:
> I have a SSL set up on www.mydomain.com
>
> How can I redirect traffic on mydomain.com to https://www.mydomain.com?
>    server {
>        listen 443 default;

Try port 80...

server {
listen 80;
rewrite ^(.*) https://mydomain.com$1 permanent;
}





More information about the nginx mailing list