bitnami ssl 클라우드플레어 설정법

Mr.키아 2018.01.10 04:47:27

아래 코드를 해당 server.conf로 생성 하시면 됩니다.

 

server {

 listen 80;

 root /web/계정명/www;

 server_name 계정명도메인;

 index index.php index.html index.htm;

 location ~ \.php$ {

  fastcgi_split_path_info ^(.+\.php)(/.+)$;

  fastcgi_read_timeout 300;

  fastcgi_pass unix:/opt/bitnami/php/var/run/www.sock;

  fastcgi_index index.php;

  fastcgi_param  SCRIPT_FILENAME $request_filename;

  include fastcgi_params;

 }

}

 

server {

 listen 443;

 root /web/계정명/www;

 server_name 계정명도메인;

 index index.php index.html index.htm;

 

 ssl on;

 ssl_client_certificate /opt/bitnami/nginx/conf/cloudflare.crt;

 ssl_verify_client on;

 ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

 ssl_ciphers   EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;

 ssl_prefer_server_ciphers on;

 

 location ~ \.php$ {

  fastcgi_split_path_info ^(.+\.php)(/.+)$;

  fastcgi_read_timeout 300;

  fastcgi_pass unix:/opt/bitnami/php/var/run/www.sock;

  fastcgi_index index.php;

  fastcgi_param  SCRIPT_FILENAME $request_filename;

  include fastcgi_params;

 }

}