apache - AJP Connector not working? (404 error) -


i'm trying connect apache webserver (2.4.10) tomcat 7, both located in 2 different vms. it's first time using tools. understood method check if connection working try access tomcat using url ip/instance instead of, if have tomcat on 8080 port, ip:8080/instance. however, everytime try that, 404 error returned apache. here's configuration:

on tomcat's vm, server.xml has line:

<connector port="8009" protocol="ajp/1.3" redirectport="8443 /> 

on apache's vm, have set files:

apache2.conf (in apache main folder)

servername apache include httpd.conf serverroot "/etc/apache2"  mutex file:${apache_lock_dir} default  pidfile ${apache_pid_file}  timeout 300  keepalive on maxkeepaliverequests 100 keepalivetimeout 5  user ${apache_run_user} group ${apache_run_group}  hostnamelookups off  errorlog ${apache_log_dir}/error.log  loglevel warn  # include module configuration: includeoptional mods-enabled/*.load includeoptional mods-enabled/*.conf  include ports.conf  <directory />         options followsymlinks         allowoverride none         require denied </directory>  <directory /usr/share>         allowoverride none         require granted </directory>  <directory /var/www/>         options indexes followsymlinks         allowoverride none         require granted </directory>  accessfilename .htaccess  <filesmatch "^\.ht">         require denied </filesmatch>  logformat "%v:%p %h %l %u %t \"%r\" %>s %o \"%{referer}i\" \"%{user-agent}i\"" vhost_combined logformat "%h %l %u %t \"%r\" %>s %o \"%{referer}i\" \"%{user-agent}i\"" combined logformat "%h %l %u %t \"%r\" %>s %o" common logformat "%{referer}i -> %u" referer logformat "%{user-agent}i" agent  # include generic snippets of statements includeoptional conf-enabled/*.conf  # include virtual host configurations: includeoptional sites-enabled/*.conf 

httpd.conf (in apache main folder, symbolic link in conf-available , conf-enabled)

loadmodule jk_module /usr/lib/apache2/modules/mod_jk.so 

workers.properties (in /etc/libapache2-mod-jk)

workers.tomcat_home=/usr/share/tomcat7  workers.java_home=/usr/lib/jvm/java-7-openjdk-amd64  ps=/  worker.list=agent1 worker.maintain=3600  worker.agent1.port=8009 worker.agent1.host=192.168.2.97 worker.agent1.type=ajp13  worker.agent1.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=agent1 

jk.conf (in mods-available folder, link in mods-enabled)

jkworkersfile /etc/libapache2-mod-jk/workers.properties  jklogfile /var/log/apache2/mod_jk.log jkloglevel debug jklogstampformat "[%a %b %d %h:%m:%s %y] "  jkshmfile /var/log/apache2/jk-runtime-status  jkwatchdoginterval 60  jkmount     /gameoflife/*   agent1  jkmount     /gameoflife     agent1 jkmount     /gameoflife*    agent1  <location /jk-status>     jkmount jk-status     order deny,allow     deny     allow 127.0.0.1 </location> <location /jk-manager>     jkmount jk-manager     order deny,allow     deny     allow 127.0.0.1 </location> 

i know can mess because tried following different guides , doing have working still 404 errors. how can have working? in advance.

for reasons, started working once tried (in desperation) implement load balancer without ajp connector working on single server, given beginning final goal. ultra happy.

at end wrote jkmount instructions in 000-default.conf file in sites-enabled, precisely in virtualhost< *:80> istruction. maybe needed in order work properly.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -