0
我想在我的play應用程序中只使用https端口。我已經在命令行參數中成功添加了-Dhttps.port = 9043,並且使用兩個端口默認http = 9000和https = 9043開始播放。如何配置播放停止使用http端口?如何在playframework中使用https而不是http
我想在我的play應用程序中只使用https端口。我已經在命令行參數中成功添加了-Dhttps.port = 9043,並且使用兩個端口默認http = 9000和https = 9043開始播放。如何配置播放停止使用http端口?如何在playframework中使用https而不是http
在玩2.x中,設置http.port
至disabled
,而不是提供一個端口號:
./start -Dhttp.port=disabled -Dhttps.port=9043 # (...)
的
可能重複[如何禁用遊戲框架http端口?(HTTP:/ /stackoverflow.com/questions/24864163/how-to-disable-http-port-in-play-framework) – 2014-09-11 11:11:50
正確標記您的問題 – biesior 2014-09-11 12:44:22