Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Apache doesn't connect to tomcat
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Cruel
n00b
n00b


Joined: 25 Jun 2011
Posts: 54

PostPosted: Tue Aug 20, 2013 6:50 am    Post subject: [SOLVED] Apache doesn't connect to tomcat Reply with quote

Hello all,

I installed tomcat-7.0.32 and apache2 as well as mod_jk-1.2.37.
When I browse to port 80 then apache shows me "It works!" and when I browse to port 8080 tomcat shows me the default page.
After the configuration apache should show me the default page from tomcat when I browse port 80 but this does not work.

Here are some information:

/etc/apache2/jk-workers-minimal.properties
Quote:

workers.tomcat_home=/usr/share/tomcat-7/
worker.list=jk-status,worker1
 
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
 
#
# Define status worker
#
 
worker.jk-status.type=status


/etc/apache2/modules.d/88_mod_jk.conf
Quote:

<IfDefine JK>
LoadModule jk_module    modules/mod_jk.so
 
JkWorkersFile   /etc/apache2/jk-workers-minimal.properties
 
 
JkLogFile       /var/log/apache2/mod_jk.log
 
 
JkLogLevel      info

JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 
 
JkRequestLogFormat "%w %V %T"

jkAutoAlias /usr/share/tomcat-7/webapps/
jkMount /* worker1
 
</IfDefine>


/var/log/apache2/mod_jk.log
Quote:

[Tue Aug 20 08:36:02.000 2013] [13253:139806798100288] [error] init_jk::mod_jk.c (3348): Initializing shm:/usr/lib64/apache2/logs/jk-runtime-status.13253 errno=2. Load balancing workers will not fu$
[Tue Aug 20 08:36:02.000 2013] [13253:139806798100288] [info] init_jk::mod_jk.c (3365): mod_jk/1.2.37 initialized
[Tue Aug 20 08:36:03.001 2013] [13254:139806798100288] [error] init_jk::mod_jk.c (3348): Initializing shm:/usr/lib64/apache2/logs/jk-runtime-status.13254 errno=2. Load balancing workers will not fu$
[Tue Aug 20 08:36:03.001 2013] [13254:139806798100288] [info] init_jk::mod_jk.c (3365): mod_jk/1.2.37 initialized


/etc/tomcat-7-test/server.xml
Quote:

<!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


Last edited by Cruel on Wed Aug 21, 2013 10:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Cruel
n00b
n00b


Joined: 25 Jun 2011
Posts: 54

PostPosted: Wed Aug 21, 2013 10:25 am    Post subject: Reply with quote

Okay, I've solved my problem. I just installed apache2 with the mod_proxy module and now it works. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum