Overview

This document explains the process how to install and configure Apache server in SSL enabled mode on RedHat Linux Environment.

 

Steps to Configure and Install Apache server with SSL enabled

1.Run following command to install apache on RedHat

yum install httpd*

yum install mod_ssl

a

 

 

 

 

 

Figure: Installed Apache Server

a

 

 

 

 

 

 

 

Figure: Installed Apache modules

 

2. To integrate Apache with tomcat one needs to create workers.properties file as shown in following screenshot and save this file (e.g. to /etc/httpd/conf directory). workers.properties can be placed anywhere but one needs to provide its path inside httpd.conf file located at <Apache server>/conf folder.

a

 

 

 

 

 

 

 

 

 

#sample worker.properties file is also shared with this document.

3. Mod_jk connector is required in order to integrate Apache server with tomcat server.
4. Install mod_jk connector as explained on YouTube

Alternatively please copy shared mod_jk.so file in modules directory of apache server from shared artefacts.

5. To configure /etc/httpd/conf/httpd.conf please add/alter following lines in this file:
Comment has been added for each property to understand its purpose.

#server name and port
ServerName localhost:80

#enable mod_jk
LoadModule jk_module /etc/httpd/modules/mod_jk.so
#path of workers.properties
JkWorkersFile /etc/httpd/conf/workers.properties
#path of log file
JkLogFile /etc/httpd/logs/mod_jk.log
JklogLevel emerg
JkLogStampFormat “[%a %b %d %H:%M:%S %Y]”
JkOptions +ForwardKeySize +ForwardURICompat –ForwardDirectories
JkRequestLogFormat “%w %v %T %p %q %r %v %U”

#mod_jk mount tomcat application to apache server
JkMount /dcma* tomcat

a

 

 

 

 

 

 

 

 

 

 

#sample httpd.conf file is also shared with the document.

 

6. Add ssl.conf file in /etc/httpd/conf.d if not already present and please add/alter following lines in this file:

#certificate file path
SSLCertificateFile /etc/httpd/cert/server.crt

#key path
SSLCertificateKeyFile /etc/httpd/cert/server.key

#mod_jk mount tomcat application to apache server
JkMount /dcma* tomcat

a

 

 

 

 

 

 

 

 

 

#sample ssl.conf file is also shared with the document.

7. User can change the SSL port in ssl.conf file, the default port value is 443.

a

 

 

 

 

 

8. Please copy shared mod_ssl.so file in modules directory of apache server if not already present there.
9. Start Ephesoft tomcat server.
10. Once tomcat is up and running please start httpd service using following command:

cd /etc/httpd/bin
apachectl start

11. Use Https url to access Ephesoft server.

Was this article helpful to you?

Walter Lee

Comments are closed.