Link Apache and Tomcat in a blink of an eye on CentOS 8

Overview

Classic material

environment

Premise

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

procedure

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] /.

reference

Recommended Posts

Link Apache and Tomcat in a blink of an eye on CentOS 8
Change JDK and Tomcat versions on CentOS
Stuck in an enum in front of a blacksmith
[Raspberry Pi] Try to link Apache2 and Tomcat
Apache and tomcat
Create an environment for Tomcat and Postgres on a Chromebook without using developer mode
Create a Java Servlet and JSP WAR file to deploy to Apache Tomcat 9 in Gradle
Create a user with an empty password on CentOS7
Tomcat v8 on CentOS7
A program (Java) that outputs the sum of odd and even numbers in an array
A memorandum when running Apache Maven on an in-house proxy
Procedure to link httpd and Tomcat9 with CentOS8.3 (multiple ProxyPass)
Install Apache on CentOS on VirtualBox
A story of connecting to a CentOS 8 server with an old Ansible
(Ruby on Rails6) Creating a database and displaying it in a view
Cast an array of Strings to a List of Integers in Java
Creating an ArrayList that allows you to throw in and retrieve the coordinates of a two-dimensional plane
[Spring Boot] Precautions when developing a web application with Spring Boot and placing war on an independent Tomcat server
A story that I was addicted to twice with the automatic startup setting of Tomcat 8 on CentOS 8