设为首页 加入收藏

TOP

nginx配置aliyun https
2017-10-12 18:05:31 】 浏览:5740
Tags:nginx 配置 aliyun https
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 ^/(.*)$ https://www.goforit.com/$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;
	}
}

  

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇压力测试(webbench、ab、siege) 下一篇前端打包文件在 nginx 上 403 的..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目