I have three web services (war files) from third party suppliers, which are hosted in Tomcat. Every web service will have a different URL (such as website1.com, website2.com, website3.com) and the research and POC work I have done, can be obtained using this virtual host.
Two questions: 1. Limit access to two web services like so that they can only be reached from internal IP address. How can this be done? 2. The positioning system of each web service is that it can run to check that the service is working properly (it chooses the database and runs some ways on the WebService) .When it comes to web service But if it checks the methods, then localhost is used to call it. However my Tomcat configuration is set to use hostname names and thus fails. Can I still force every web service to host name?
Here is the host configuration from the Tomcat server.exm file:
Do one of the following for the first part:
- Set firewall rules to restrict access to the white list of an IP address.
- A simple HTTP modules will only allow hard code (or from the config) to allow the IP / host and all others to reject.
For the second part:
-
Just change:
& lt; Hostname = "http: // localhost: 8080 / yourWebName appbase =" packaging app "unpackWARs =" true "autoDeploy =" true "& gt;
& lt; / host & gt;
Comments
Post a Comment