To use the URL as http://myUrl:13001/myAppName
, the following contents are specified in the grails-app/conf/application.yml
file.
environments:
production:
grails:
serverURL: http://myUrl:13001/myAppName
To run, in grails 4.0.11
./gradlew -Dgrails.env=prod bootRun
command was executed.
And when I enter http://myUrl:13001/myAppName
in the browser address bar to log in,
The login screen of http://myUrl:13001/myAppName/
came out properly.
However, since this is the first login, after clicking the registration link, http://myUrl:13001/myAppName/register/index
is displayed properly in the address bar.
After completing the input on the registration screen and pressing Enter,
It appears as http://myUrl:13001//
only, and
HTTP Status 404 - Not Found is displayed.
Also, I made a war file and tried to run it in Tomcat made with Docker, but the same error is displayed.
I would appreciate it if you let me know if there are any other settings to add other than this