How to redirect all SSL traffic?

Glen Lumanau glen at
Sun Nov 8 06:37:17 MSK 2009

I have a SSL set up on

How can I redirect traffic on to

I've tried the following

    server {
        listen 443 default;
        server_name _;
        rewrite ^/(.*)$1 permanent;

    server {
        listen 443 default;
        rewrite ^$request_uri?;

both not working..

thank's before
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list