Step 1
In this we are going to see the redirection tomcat from apache. For this we need to do the following steps.
First create workers.properties file and add the below mentioned details.
touch workers.properties
vi workers.properties
add
worker.list=tst
worker.tst.type=ajp13
worker.tst.port=8009
worker.tst.host=tomcat ip or hostname
Step 2
Add the workers.propertis details in apache config file.
vi /usr/local/apache2.x/conf/httpd.conf
JkExtractSSL On
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID
JkCIPHERIndicator SSL_CIPHER
JkCERTSIndicator SSL_CLIENT_CERT
JkWorkersFile "/usr/local/apache2.x/conf/workers.properties"
JkLogFile "/usr/local/apache2/logs/mod_jk.log"
JkShmFile "/usr/local/apache2/logs/jkshmi.log"
JkLogLevel error
Now save and close it
Step 3
Now we need to add the few more details in http-ssl.conf
vi /usr/local/apache2.x/conf/extra/http-ssl.conf
add the below details before </VirtualHost>
JKMount /example tst
JKMount /example/* tst
JKMount /* tst
example --> is that you have the context name of tomcat web like http://192.168.1.2:8080/example
That's all ...
In this we are going to see the redirection tomcat from apache. For this we need to do the following steps.
First create workers.properties file and add the below mentioned details.
touch workers.properties
vi workers.properties
add
worker.list=tst
worker.tst.type=ajp13
worker.tst.port=8009
worker.tst.host=tomcat ip or hostname
Step 2
Add the workers.propertis details in apache config file.
vi /usr/local/apache2.x/conf/httpd.conf
JkExtractSSL On
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID
JkCIPHERIndicator SSL_CIPHER
JkCERTSIndicator SSL_CLIENT_CERT
JkWorkersFile "/usr/local/apache2.x/conf/workers.properties"
JkLogFile "/usr/local/apache2/logs/mod_jk.log"
JkShmFile "/usr/local/apache2/logs/jkshmi.log"
JkLogLevel error
Now save and close it
Step 3
Now we need to add the few more details in http-ssl.conf
vi /usr/local/apache2.x/conf/extra/http-ssl.conf
add the below details before </VirtualHost>
JKMount /example tst
JKMount /example/* tst
JKMount /* tst
example --> is that you have the context name of tomcat web like http://192.168.1.2:8080/example
That's all ...
No comments:
Post a Comment