HTTP full station jump to HTTPS

Source: Internet
Author: User

The following is not an error, but will affect other sites ~ ~ ~ I fainted ...

server {Listen 80;server_name www.skiy.net skiy.net; #rewrite ^/(. *) https://$server _name$1 permanent; return 301 https:/ /$server _name$request_uri;} server {access_log off;index index.html index.htm index.jsp index.php;include rewrite/typecho.conf;root/home/wwwroot/ Www.skiy.net, #error_page 404/404.html;if ($query _string ~* ". *[\; ' \<\>].* ") {return 404;} Location ~. *\. (wma|wmv|asf|mp3|mmf|zip|rar|jpg|gif|png|swf|flv) $ {valid_referers None blocked *.skiy.net www.skiy.net skiy.net;if ( $invalid _referer) {#rewrite ^/Http://www.linuxeye.com/403.html;return 403;}} Location ~. *\. (PHP|PHP5) $ {#fastcgi_pass Remote_php_ip:9000;fastcgi_pass unix:/dev/shm/php-cgi.sock;fastcgi_index index.php; Include fastcgi.conf;} Location ~. *\. (Gif|jpg|jpeg|png|bmp|swf|flv|ico) $ {expires 30d;} Location ~. *\.        (JS|CSS)? $ {expires 7d;} #https Listen 443;server_name www.skiy.net skiy.net;ssl On;ssl_certificate/usr/local/nginx/conf/keyssh/1_www.skiy.        NET_BUNDLE.CRT; ssl_certificate_key/uSr/local/nginx/conf/keyssh/2_www.skiy.net.key;ssl_session_timeout 5m;ssl_protocols SSLv3 TLSv1;ssl_ciphers HIGH:! Adh:!         Export56:rc4+rsa:+medium; Ssl_prefer_server_ciphers on;error_page 497 "https://$host $uri? $args"; #http to HTTPS}

HTTP full station to HTTPS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.