3
我正在使用Revel進行小型應用並添加了SSL。當我更新配置指向http.port = 443時,端口80的請求被拒絕而不是被轉發。有沒有辦法在Revel Framework上解決這個問題?謝謝。當SSL啓用時,Revel不轉發到端口443
# The port on which to listen.
http.port = 443
# Whether to use SSL or not.
http.ssl = true
# Path to an X509 certificate file, if using SSL.
http.sslcert = /root/go/src/saml/AlphaCerts/cert.crt
# Path to an X509 certificate key, if using SSL.
http.sslkey = /root/go/src/saml/star_home_com.key
這工作沒有任何改變你的代碼。在將上面的代碼放入func init()後,其他人需要注意導入net/http和fmt。謝謝! – vinniyo