Score:0

Configuring VirtualHost in Spring Boot application embedded Tomcat server in Windows

de flag

I have a private Windows server running a Spring Boot jar file and I can access it via the IP address. I have a few websites available which I am able to access via the IP address and filters. (Note that this is running on port 54654 as I have other WEB APIs as well). I have a new domain registered online and I would like to access the server by the domain name which would redirect to my server address.

But the issue is, the browser shows the IP address instead of the domain name. I tried forward with masking but it is not working as I expected (it puts the site inside an iFrame and I cannot access browser properties etc). I want to access my site like www.abc.com and it should not change to <host-ip-address>:<port>. I understand the issue is from server side and do not know how to make it remain in the domain name. I tried a new entry with hosts.txt file but it does not seem to work.

I have searched for solution online for hours and could not find a specific solution for Spring Boot and changing VirtualHost settings in tomcat is not clear to me in this case. Is there any settings for this in application.properties file?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.