Struts2 をTomcat9 で動かす

JRE Download - Version 8 Update 311

Apache2

apt install apache2

vi /etc/apache2/apache2.conf

ServerName localhost:80;
Include /home/ip_access/httpd24-vhosts.conf

module on

a2enmod
proxy_http proxy_ajp alias headers auth_basic cache expires vhost_alias rewrite ssl status setenvif lbmethod_byrequests

tomcat9

apt install openjdk-8-jre
apt install tomcat9 tomcat9-admin

tomcat-users.xml

vi /etc/tomcat9/tomcat-users.xml

<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<user username="admin" password="pass-admin" roles="admin-gui,manager-gui"/>

server.xml

# sercurity update
vi /etc/tomcat9/server.xml

<Connector protocol="AJP/1.3" address="127.0.0.1" port="8009" redirectPort="8443" secretRequired="false" />

restart tomcat9

ブラウザで確認(http://192.168.23.74:8080/manager/html)