server { listen 443; root /home/wwwroot/mydnsvip/wwwroot; ssl on; ssl_certificate /home/ssl/blog.mydns.vip.crt; ssl_certificate_key /home/ssl/blog.mydns.vip.key; ssl_prefer_server_ciphers on; ssl_session_timeout 10m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; server_name blog.mydns.vip; index index.html index.php index.htm; location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location / { if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } }
记录下,以免忘记。
» 本文链接地址:https://blog.mydns.vip/2552.html
最新评论
麻烦发下检测工具
让我下载
非常好