This content has been marked as final.
Show 3 replies
-
1. Re: How to restrict and redirect the web application to use hostname instead of IP address
jfclere May 14, 2013 4:31 AM (in response to srinu_ammina)Hm so you want to redirect the requests coming with an IP in the hostname: IP to the corresponding hostname: name, correct?
-
2. Re: How to restrict and redirect the web application to use hostname instead of IP address
srinu_ammina May 14, 2013 5:34 AM (in response to jfclere)Yer sir. If the user tries to access the web application URL with IP address on providing the IP address in web browser and clicking on should be redirected to HOSTNAME based URL.
http://123.23.34.45:9001/WebAppls
should be redirected to
http://hostname.defined.DNS:9001/WebAppls
Thanks
Srinivasa Rao Ammina.
-
3. Re: How to restrict and redirect the web application to use hostname instead of IP address
jfclere May 14, 2013 6:23 AM (in response to srinu_ammina)Use the rewritevalve for that:
See http://docs.jboss.org/jbossweb/7.0.x/config/host.html and http://docs.jboss.org/jbossweb/7.0.x/rewrite.html