Classic material
It is assumed that the settings of apache and tomcat have been completed.
--apache configuration file: / etc / httpd / conf --tomcat configuration file: / usr / java / tomcat8 / conf
Create the following configuration file. For the time being, transfer everything.
/etc/httpd/conf.d/proxy.conf
ProxyPass / ajp://localhost:8009/
Do the following (magic)
/usr/sbin/setsebool -P httpd_can_network_connect 1
Comment off below to crush 8080
/usr/java/tomcat8/conf/server.xml
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
Restart tomcat
systemctl restart tomcat
You should be able to see the tomcat home screen at URL: http: // [IP address] /.
Recommended Posts