亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

laravel nginx https 404

laravel nginx https 404

PHP
慕桂英546537 2019-03-02 12:48:28
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 回答

?
青春有我

TA貢獻1784條經驗 獲得超8個贊

 try_files $uri $uri/ @rewrite;

    location @rewrite {
            rewrite ^/(.*)$ /index.php?_url=/$1;
    }


查看完整回答
反對 回復 2019-03-02
?
哆啦的時光機

TA貢獻1779條經驗 獲得超6個贊

試試


查看完整回答
反對 回復 2019-03-02
  • 2 回答
  • 0 關注
  • 590 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號