I am running a spring framework based web app on Oracle Weblogic Server. I have 2 subdomain for my URL pointing to my application (Instance).
For example: www.asd.com and secure.asd.com.
From my code I need to identify the subdomain and handle different logics for each subdomain.
((HttpServletRequest) request).getRequestURL().toString();
is actually returning machine name instead of full URL.
My expectation
secure.asd.com
But what I'm getting is (machine name)
svmachine001
Any idea how to get Full URL?
svmachine001. Solution: don't.