4

how can i convert my grails application from http to https under Linux operating system

2 Answers 2

5

the configuration depends on what container you are running the application in your production environment. You should be deploying a war to your Production Server not doing a grails run-app -https

here is a stackoverflow question with a configuration for Tomcat.

I am certain you can google around and find proper configuration based on your application server

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

Comments

3

What do you mean by "convert"?

You can run the embedded tomcat with HTTPS enabled by adding -https to the run-app command:

grails run-app -https 

If you want HTTPS enabled in production then you need to configure your app server to support it.

2 Comments

yes i want HTTPS enabled in production. how can i configure my app server to support it. When i try grails run-app -https a message appear that i can't run app as this way. is there another way
you shouldn't be using run-app in production. Build a WAR and deploy it. See other answer for a good link

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.