server {listen 443;server_name www.goforit.com goforit.com;ssl on;ssl_certificate cert/goforit.pem;ssl_certificate_key cert/goforit.key;ssl_session_timeout 5m;ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;ssl_protocols TLSv1 TLSv1.1 TLSv1.2;ssl_prefer_server_ciphers on;if ( $host != 'www.goforit.com' ){rewrite ^/(.*)$ $1 permanent;} access_log logs/access_www.log main;location / {root /usr/local/data/www/www;index index.php index.html;} error_page 404 /missing.html;location ~ /\.ht { deny all; } location ~ \.php$ {root /usr/local/data/www/www;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME /usr/local/data/www/www$fastcgi_script_name;include fastcgi_params;}}
登录后复制
以上就是nginx配置aliyun https的详细内容,更多请关注【创想鸟】其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。
发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/3166095.html