# Apache/Tomcat and mod\_jk

**URL:** <https://forums.suse.com/t/apache-tomcat-and-mod-jk/27019>\
**Category:** SLES Configure-Administer\
**Created:** [May 12, 2015, 8:21pm UTC](https://forums.suse.com/t/apache-tomcat-and-mod-jk/27019 "2015-05-12T20:21:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjornis](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@Bjornis](https://forums.suse.com/u/Bjornis)\
**Post date:** [May 12, 2015, 8:21pm UTC](https://forums.suse.com/t/apache-tomcat-and-mod-jk/27019/1 "2015-05-12T20:21:28Z")

</div>

Hi,

I’m having a great deal of trouble when trying to get Apache and mod\_jk to work with Tomcat.  
I have 2 Sles12 server, one with Apache and mod\_jk installed and another with Apache and Tomcat.  
I have verified the that Apache works on server one and that I’m able to access Tomcat pages on server two.  
So separately everything works.  
Then I want server one to be my “frontend” for Tomcat and therefore i have tried to configure mod\_jk.  
So far have I installed mod\_jk, verified that it’s loaded in to Apache and created and modified some config files..

Here is my config files

httpd.conf:

[CODE]…

### Tomcat server configuration

# 

Include /etc/apache2/mod\_jk/mod\_jk.conf[/CODE]

mod\_jk.conf:

[CODE]JkLogFile /var/log/apache2/mod\_jk.log  
JkWorkersFile /etc/apache2/mod\_jk/workers.properties  
JkShmFile /etc/apache2/mod\_jk/mod\_jk.shm

# The following line makes apache aware of the location of

```
# the /showcase context
Alias /sample "/srv/tomcat/webapps/sample"
<Directory "/srv/tomcat/webapps/sample">
   Options Indexes FollowSymLinks
    Require all granted
</Directory>

```

# Set the jk log level [debug/error/info]

JkLogLevel debug

# Select the timestamp log format

JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# JK mount

#JkMount /sample worker1  
JkMount /_.jsp worker1  
JkMount /sample/_ worker1[/CODE]

workers.properties:

`worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=sles12-lamp
worker.worker1.type=ajp13`

Since it’s my own test environment i have disabled firewalls and i have verified the communications between the servers, including adding host names to my local host file.

Cheers  
BjÃ¶rn

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [May 18, 2015, 7:30am UTC](https://forums.suse.com/t/apache-tomcat-and-mod-jk/27019/2 "2015-05-18T07:30:16Z")

</div>

Bjornis,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting, please ignore and accept our apologies  
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)

---

<div class="post-metadata">

**Author:** ![rvillafafila](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@rvillafafila](https://forums.suse.com/u/rvillafafila)\
**Post date:** [May 25, 2015, 5:10pm UTC](https://forums.suse.com/t/apache-tomcat-and-mod-jk/27019/3 "2015-05-25T17:10:36Z")

</div>

Did you check mod\_jk.log content?  
Did you get some error or warning message when you started apache?
