ホームページ  >  記事  >  運用・保守  >  nginx 設定 aliyun https

nginx 設定 aliyun https

PHP中文网
PHP中文网オリジナル
2017-06-19 11:19:571850ブラウズ
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の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。