网站LNMP的,弄好了SSL,直接访问网站https://www.xxx.com出现下载页面

47681

访问https://www.xxx.com/index.php就能正常显示,请问这样怎么弄?
HTTP访问都正常
下面是配置文件

  • server
  • {
  • listen 80;
  • listen 443;
  • - #listen [::]:80;
  • ssl on;
  • ssl_certificate /usr/local/nginx/conf/www.xxx.com.crt;
  • ssl_certificate_key /usr/local/nginx/conf/www.xxx.com.key;
  • server_name www.xxx.com xxx.com;
  • index index.php;
  • root /home/wwwroot/www.xxx.com;
  • - include none.conf;
  • #error_page 404 /404.html;
  • - # Deny access to PHP files in specific directory
  • #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
  • - include enable-php.conf;
  • - location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  • {
  • expires 30d;
  • }
  • - location ~ .*\.(js|css)?$
  • {
  • expires 12h;
  • }
  • - location ~ /.well-known {
  • allow all;
  • }
  • - location ~ /\.
  • {
  • deny all;
  • }
  • - access_log off;
  • }复制代码

特殊原因,域名隐去了,麻烦帮忙看下,谢谢