By default, Tomcat runs on port 8080 using the HTTP protocol. As this port is well known by developers, it is easier for hackers to hit the port and trap the server. So it's always recommended to change the connector port and also the AJP port, which runs on 8009, to secure Tomcat.
Connectors are configured in server.xml in the conf directory of your Tomcat installation.
Linux: /etc/services
Windows: C:\Windows\System32\drivers\etc\services
Connectors are configured in server.xml in the conf directory of your Tomcat installation.
Before changing Tomcat port, you should verify that the port is not being used by other services. You can check the following operating system configuration files in order to avoid port conflict between the two services.
Linux: /etc/services
Windows: C:\Windows\System32\drivers\etc\services
Commenti
Posta un commento