登录  /  注册
php - Laravel https请求错误提示:Invalid request (Unsupported SSL request)
迷茫
迷茫 2017-04-11 09:21:26
[PHP讨论组]

在LNMP环境中生成私有证书并配置nginx,我现在可以访问https://localhost

在laravel 路由中添加一条

Route::get('/ssl', array('https' => true, function() {
        return View('welcome');
    })
);

再启动laravel

php artisan serve

当我访问https://localhost:8000时并不成功
提示错误

[Sat Jan 21 22:33:29 2017] 127.0.0.1:43310 Invalid request (Unsupported SSL request)
[Sat Jan 21 22:33:30 2017] 127.0.0.1:43312 Invalid request (Unsupported SSL request)
[Sat Jan 21 22:33:32 2017] 127.0.0.1:43314 Invalid request (Unsupported SSL request)
[Sat Jan 21 22:33:33 2017] 127.0.0.1:43316 Invalid request (Unsupported SSL request)
[Sat Jan 21 22:33:35 2017] 127.0.0.1:43318 Invalid request (Unsupported SSL request)
[Sat Jan 21 22:33:36 2017] 127.0.0.1:43320 Invalid request (Unsupported SSL request)

我应该怎么做才能让https能够访问?
任何提示或者帮助都非常感谢!

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2024 //m.sbmmt.com/ All Rights Reserved | php.cn | 湘ICP备2023035733号