0

I have a follow up question about redirecting grails apps from 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

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

3 Comments

thanks. i already have HTTPS set up. I just want to make sure that if a user tries to go to http they get redirected to https. right now, using the code i posted earlier, it just turns off access to the site if they go to http. i want to keep that but redirect to https
So you can manually navigate to localhost:8443 to a non-secure page and it works?
as it turns out, i think my problem is with AWS and their port config. I will re post this question. thanks for your help!
0

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

3 Comments

no, i copied it directly from the error page. it does say 8443
Sorry - I hoped it might be a quick for you!
Tomcat's default SSL port is 8443, similar to how its default non-ssl port is 8080, rather than 80. Most folks are running Apache in front of Tomcat, therefor, different port #'s are required.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.