My local servers IP is 19.xxxxx. My application runs on TOMCAT using local IP 19.xx.xx.xx.:8090
I want outside users reach this IP by typing xxx.xxx.com:8090
DNS and firewall settings has done by IT.
How will i change server.xml in Tomcat?
My local servers IP is 19.xxxxx. My application runs on TOMCAT using local IP 19.xx.xx.xx.:8090
I want outside users reach this IP by typing xxx.xxx.com:8090
DNS and firewall settings has done by IT.
How will i change server.xml in Tomcat?
Copyright © 2021 Jogjafile Inc.
You need to set up a reverse proxy and properly configure DNS.
Make sure the domain
servername.compoints to the IP address of your local machine where Tomcat is running. Do this by adding an A record in your DNS configuration.The redirection you're looking for can be done by using a reverse proxy, like Apache HTTP Server or Nginx.
You did not indicate what environment your local machine is. Here is an example of installing and setting up a reverse proxy with Apache on Debian or Ubuntu:
Edit the Apache configuration which should be located at
/etc/apache2/sites-available/000-default.conf. Add the following:Save the file and exit.
Restart Apache:
If you have a firewall make sure to configure to allow port 8080. Here is an example for Firewalld:
This should create the redirect you want.