1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| server { listen 80; server_name xxx.com;
location = / { rewrite ^(.+)$ $scheme://www.xxx.com$1 redirect; }
# root /usr/share/nginx/Multi-CDN/multicdn; # index index.html index.htm;
}
server { listen 443; server_name xxx.com;
# root /usr/share/nginx/Multi-CDN/multicdn; # index index.html index.htm; #
# ssl_certificate_key /etc/nginx/sites-cret/huosanyun.key; #
# ssl_session_timeout 5m; #
# ssl_prefer_server_ciphers on;
location = / { rewrite ^(.+)$ $scheme://www.xxx.com$1 redirect; } }
|