【发布时间】:2014-09-11 21:40:39
【问题描述】:
当我使用 https 端口运行 Play Framework 时,应用程序在两个端口上启动 - 默认 (9000) 和 https (443)。 如何禁用默认的 9000 端口并仅在 https 端口上运行 Play 应用程序?
我通过以下命令运行应用程序:
play -Dhttps.port=443 -Dhttps.keyStore=/path/to/keystore -Dhttps.keyStorePassword=password start
我得到了一些日志:
[info] play - 应用程序已启动(Prod)
[信息] 播放 - 聆听 HTTP on /0:0:0:0:0:0:0:0:9000
[info] play - 监听 HTTPS 端口 /0:0:0:0:0:0:0:0:443
【问题讨论】:
标签: java scala playframework playframework-2.0