Laravel環境 nginx配置了Https訪問,除了首頁面可以正常訪問,其他路由都是404,查了很多資料沒找到原因;如果換成http訪問,所有訪問都是正常的;請幫忙看看;這是我的配置listen 443 ssl http2 default_server;listen [::]:443 ssl http2 default_server;ssl_certificate localhost.pem;ssl_certificate_key localhost.key;ssl_session_timeout 5m;ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;ssl_protocols TLSv1 TLSv1.1 TLSv1.2;ssl_prefer_server_ciphers on;server_name localhost;root /data/wwwwroot/project/public;index index.php index.html index.htm;
location ~ [^/]\.php(/|$) { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params;
}
location / { try_files $uri $uri/ /index.php?$query_string;
}
- 2 回答
- 0 關注
- 590 瀏覽
添加回答
舉報
0/150
提交
取消