开发者

redirect http to https in grails

I have a follow up question about redirecting grails apps fro开发者_高级运维m http to https. another user showed me that, the config file, i can do something like this:

    grails.plugins.springsecurity.secureChannel.definition = [
        '/**':         'REQUIRES_SECURE_CHANNEL',]

right now, this will cause the user to see a page that says:

Unable to connect Firefox can't establish a connection to the server at localhost:8443.

Is this what it should be doing? if so, how do i have my grails app redirect to https?

thanks! jason


Grails doesn't run over HTTPS by default. You'll need to execute run-app with -https option.


HTTPS is usually over port 443 not 8443 - this could be your problem or typo in your question?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜