[LINUX] How to integrate Apache httpd 2.4 and Tomcat 9 on Cent OS 8


Install the latest version of Apache httpd 2.4 on Cent OS 8 from source Install Tomcat 9 on Cent OS 8 Link the two installed here.

Please note that the default value has changed since Tomcat: v9.0.31.


httpd setting change

Modify httpd.conf and create httpd-proxy.conf.

httpd.conf change

vi /usr/local/apache2/conf/httpd.conf
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

This is commented out, so uncomment it and enable it.

To read the httpd-proxy.conf to be created next, add the following contents at the end.

Include conf/extra/httpd-proxy.conf

Create httpd-proxy.conf

Specify the path you want to link.

vi /usr/local/apache2/conf/extra/httpd-proxy.conf


<Location /docs/>
  ProxyPass ajp://


systemctl restart httpd

Change Tomcat settings

Change the settings in server.xml.

vi /opt/apache-tomcat/conf/server.xml
<Connector protocol="AJP/1.3"
           redirectPort="8443" />

Items related to AJP have been commented out, so uncomment them and enable them. It is non-secure, but the secretRequired option must be false. Depending on the network environment, it may not work unless you take "address =" :: 1 "".

<Connector port="8080" protocol="HTTP/1.1"
           redirectPort="8443" />

The default port of Tomcat (port number 8080) is enabled, so comment out the above settings.


systemctl restart tomcat

Operation check

It is OK if you can access with the address without the port number. http://hostname/docs/


Now you can link Apache httpd 2.4 with Tomcat 9.

Recommended Posts

How to integrate Apache httpd 2.4 and Tomcat 9 on Cent OS 8
How to install Apache (httpd) on CentOS7
How to install Apache (httpd) on CentOS8
Integrate Apache and Tomcat
Let's integrate Django and apache (httpd) on Mac! !!
Install tomcat 9 on Cent OS 8
How to share OS and Vim clipboard on Ubuntu 18.04.3 LTS
Easy way to use Python 2.7 on Cent OS 6
Run the flask app on Cloud9 and Apache Httpd
How to install Git GUI and Gitk on CentOS
How to install caffe on OS X with macports
How to register on pypi
How to install Theano on Mac OS X with homebrew
[ROS] How to write Publisher and Subscriber on one node
To deploy Java application on VPS (Apache / Tomcat installation / linkage)
How to install OpenCV on Cloud9 and run it in Python
How to run Jupyter and Spark on Mac with minimal settings
How to install pandas on EC2 (How to deal with MemoryError and PermissionError)
How to display PDF resolution and detailed information on Linux (pdfinfo)
How to block ads for free on iPhone and iPad apps
How to install Theano on Mac OS X 10.10 (using pyenv, anaconda)
Python 3.6 on Windows ... and to Xamarin.
How to install mysql-connector-python on mac
How to install and use Tesseract-OCR
Install Adopt OpenJDK 11 on Cent OS 8
How to use Dataiku on Windows
How to install graph-tool on macOS
How to install pycrypto on Windows
Integrate Modelica and Python on Windows
How to deploy django-compressor on Windows
Notes on how to use featuretools
How to install OpenCV on Mac
How to run matplotlib on heroku
How to install PyPy on CentOS
How to use homebrew on Debian
Misunderstanding on how to connect cnn
How to install TensorFlow on CentOS 7
How to install and configure blackbird
How to use .bash_profile and .bashrc
How to install CUDA and nvidia-driver
How to install and use Graphviz
How to check Linux OS version
Notes on how to use doctest
How to install Maven on CentOS
Notes on how to write requirements.txt
How to install Go on Ubuntu
How to install music 21 on windows
How to solve slide puzzles and 15 puzzles
Until you install Apache and Tomcat on Linux (CentOS) and deploy Java apps
[Linux] How to subdivide files and folders
How to package and distribute Python scripts
How to split and save a DataFrame
How to install aws-session-manager-plugin on Manajro Linux
How to read pydoc on python interpreter
How to install drobertadams / toggl-cli on Mac
How to install and use pandas_datareader [Python]
[Kivy] How to install Kivy on Windows [Python]
How to use mecab, neologd-ipadic on colab
How to build Hello, World on #Nix
How to update php on Amazon linux 2
How to use Google Assistant on Windows 10