本来图dnspod的方便 ,还是自己的服务器靠得住,不在乎这点服务器压力,改用自己的nginx转发
server_name www.pbottle.com pbottle.com;
if ($host = 'pbottle.com' ) {
rewrite ^/(.*)$ https://www.pbottle.com/$1 permanent;
}
结果:
HTTP/1.1 301 Moved Permanently
Server: nginx/1.2.9
Date: Tue, 14 Jan 2014 17:19:02 GMT
Content-Type: text/html
Content-Length: 184
Connection: keep-alive
Location: https://www.pbottle.com/