Is it possible to run symfony2 development server with ssl connection?

点点圈 提交于 2020-01-07 08:21:27

问题


I am developing my new project in symfony 2 in built-in Symfony2 sever (app/console server:run). Is it possible to run my website with https on this server?


回答1:


The php app/console server:run use the PHP built-in web server that was designed to aid application development and isn't supposed to support SSL, just plain HTTP requests.

You can try to use this https://stackoverflow.com/a/12946566/3059764




回答2:


now it is possible using the symfony cli, you can install a ssl certificate

symfony server:ca:install

https://symfony.com/blog/local-web-server-reloaded-for-symfony-apps

To install symfony client if you are on a Mac run:

curl -sS https://get.symfony.com/cli/installer | bash

Otherwise check this link for other OS: https://symfony.com/download



来源:https://stackoverflow.com/questions/23936654/is-it-possible-to-run-symfony2-development-server-with-ssl-connection

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!