On 1/10/2014 2:53 PM, Alex Lucard wrote:
.
On Jan 10, 2014 5:00 PM, "Alex Lucard" <priest.luc...@gmail.com> wrote:
I am running CentOS 6.5 and tomcat 7
I cannot get the mod_jk to work
I have a JSP page on this server and if you go to localhost:8080/Hello it
will work but if I just go to localhost/Hello The requested URL /Hello was
not found on this server.
I have apache2 and tomcat 7 install both work.
Here is the part I added to the httpd.conf file
# Load the mod_jk module.
LoadModule jk_module /usr/lib64/httpd/modules/mod_jk.so
JkWorkersFile /etc/httpd/conf/workers.properties
jkLogFile /var/log/mod_jk.log
JkLogLevel level
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
My workers.properties file at /etc/httpd/conf/workers.properties
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.port=8009
worker.worker1.host=localhost
#worker.worker1.lbfactor=1
My error log file /var/log/mod_jk.log
[Fri Jan 10 15:19:22 2014] [1854:140509786134496] [info] init_jk::mod_jk.c
(3365): mod_jk/1.2.37 initialized
[Fri Jan 10 15:19:23 2014] [1855:140509786134496] [error]
ajp_validate::jk_ajp_common.c (2696): worker worker1 can't resolve tomcat
address localhost
[Fri Jan 10 15:19:23 2014] [1855:140509786134496] [info] init_jk::mod_jk.c
(3365): mod_jk/1.2.37 initialized
What happens when you type the following from the command line:
dig localhost
As a workaround, replace localhost with 127.0.0.1.
. . . . just my two cents
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org