How to redirect all SSL traffic?
Glen Lumanau
glen at lumanau.web.id
Sun Nov 8 06:37:17 MSK 2009
I have a SSL set up on www.mydomain.com
How can I redirect traffic on mydomain.com to https://www.mydomain.com?
I've tried the following
server {
listen 443 default;
server_name _;
rewrite ^/(.*) https://www.mydomain.com/$1 permanent;
}
server {
listen 443 default;
rewrite ^ https://www.mydomain.com$request_uri?;
}
both not working..
thank's before
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091108/1a70415e/attachment.html>
More information about the nginx
mailing list