grails - Issues with http redirect -
i using grails 2.3.7 , facing issues using redirect in controllers
i had code running , working properly. problem started when deployed code onto production environment.
for production release modified server.xml in tomcat this
<connector port="8080" protocol="http/1.1" connectiontimeout="20000" address="myapp.usa.com" redirectport="8443" />
i added context within default tag this
<context path="" docbase="myapp"> <!-- default set of monitored resources --> <watchedresource>web-inf/web.xml</watchedresource> </context>
when deployed application war file, deploys correctly , index page opens when seek access http://myapp.usa.com:8080
however wherever have used redirect within controllers code breaks
for example, consider code pointing http://myapp.usa.com:8080/mycontroller/foo , within action issued redirect http://myapp.usa.com:8080/mycontroller/boo redirected http://myapp.usa.com:8080/mycontroller/myapp.usa.com:8080/mycontroller/boo
any thought going wrong. help highly appreciated.
grails redirect tomcat7 context.xml server.xml
No comments:
Post a Comment