Nginx部署WordPress支持SSL和伪静态

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_...
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;
}
}
}
  • 发表于 2020-11-26 14:48
  • 阅读 ( 1972 )
  • 分类:建站运营

0 条评论

请先 登录 后评论
东北大表哥
东北大表哥

自由职业

161 篇文章

作家榜 »

  1. 东北大表哥 161 文章
  2. 小鹄 1 文章
  3. 阿天 0 文章
  4. 新百胜在线 0 文章
  5. 刘明明 0 文章
  6. 个的德3 0 文章
  7. 铂天先生 0 文章
  8. 王达 0 文章