z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.16k stars 2.82k forks source link

https报错 #1188

Closed chensongah closed 7 years ago

chensongah commented 7 years ago

php版本:PHP 7.1.5 laravel版本:5.5.4 laravel-admin版本:1.5.4 部署到线上后发现登录页面报错 default 我域名是https协议的,但是页面里引入的文件是http的。 查看了login页面后发现代码是:

<!-- Bootstrap 3.3.5 -->
<link rel="stylesheet" href="{{ admin_asset("/vendor/laravel-admin/AdminLTE/bootstrap/css/bootstrap.min.css") }}">
<!-- Font Awesome -->
<link rel="stylesheet" href="{{ admin_asset("/vendor/laravel-admin/font-awesome/css/font-awesome.min.css") }}">
<!-- Theme style -->
<link rel="stylesheet" href="{{ admin_asset("/vendor/laravel-admin/AdminLTE/dist/css/AdminLTE.min.css") }}">
<!-- iCheck -->
<link rel="stylesheet" href="{{ admin_asset("/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/blue.css") }}">

.env 文件的配置:

APP_URL=https://(我的域名).cn

请问这个是什么问题?

z-song commented 7 years ago

config/admin.phpsecure设置为true

chensongah commented 7 years ago

thx,完美解决。 是我没仔细看配置