server { listen 443; root /home/wwwroot/wenzhancc/wwwroot; ssl on; ssl_certificate /home/ssl/www.wenzhan.cc.crt; ssl_certificate_key /home/ssl/www.wenzhan.cc.key; ssl_prefer_server_ciphers on; ssl_session_timeout 10m; ssl_protocols TLSv1TLSv1.1TLSv1.2; ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; server_name www.wemzhan.cc; 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; } } }
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!