jboss 7 apache problem
g.evraud Jul 31, 2013 8:12 AMHello everybody,
I am trying to setup up a jboss 7 cluster. But before I wanted to test with mod_jk. If it works, I'll go further and try mod_cluster
Here is my config :
- 2 servers
- 10.100.52.100 ( jboss + httpd running)
- 10.100.52.101 ( jboss only)
I would like at first my mod_jk working. I want both server using the apache running on 10.100.52.100 (1st server)
I did the setup in both jboss server
- 10.100.52.100
- AJP 1.3 on port 8009
- JvmRoute : node1
- 10.100.52.101
- AJP 1.3 on port 8109
- JvmRoute : node2
The problem is within my httpd config (I guess). See below :
httpd.conf :
Listen 80
Listern 443
include conf/vhost/vhost.conf
include conf/modules.conf
include conf/mod_jk.conf
Include conf.d/*.conf
mod_jk.conf :
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkRequestLogFormat "%w %V %T"
JkShmFile logs/jk.shm
JkWorkersFile conf/workers/workers.properties
workers.properties :
worker.list=node1,node2,jkstatus
# Define Node1
worker.node1.port=8009
worker.node1.host=server1
worker.node1.type=ajp13
worker.node1.connection_pool_timeout=600
worker.node1.socket_keepalive=1
worker.node1.socket_timeout=60
# Define Node2
worker.node2.port=8109
worker.node2.host=server2
worker.node2.type=ajp13
worker.node2.connection_pool_timeout=600
worker.node2.socket_keepalive=1
worker.node2.socket_timeout=60
worker.jkstatus.type=status
vhost.conf :
NameVirtualHost 10.100.52.100
<VirtualHost 10.100.52.100>
ServerName server1
Otions Indexes +FollowSymLinks
JkMount /sample/* node1
JkMount /sample* node1
JkMount /jkstatus jkstatus
</VirtualHost>
NameVirtualHost 10.100.52.101
<VirtualHost 10.100.52.101>
ServerName server2
Options Indexes +FollowSymLinks
JkMount /sample/* node2
JkMount /sample* node2
JkMount /jkstatus jkstatus
</VirtualHost>
(Jkstatus isn't the right place ?!)
So my problem is that the server1 is working well (as the httpd is on the same machine) but my server2 can't display anything at http://server2/sample but http://server2:8080/sample . It's normal, tomcat is responding.
I did a netstat on server1 to check if the httpd was listening on server2:80 but nothing is listening.
I added Listen 10.100.52.101:80 but when I restart / graceful the httpd, I receive this error :
Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 10.100.52.101:80
no listening sockets available, shutting down
Unable to open logs
I tried the Listen 10.100.52.101:10000 but same result... and there is no process running on those ports on the server2.
I searched hours and hours but I didn't find anything.... I have tried to set up the apache on another machine and the result is the same. I think there is something wrong with my vhost config ..
Any idea ?
Thanks