java - Connection between Apache Httpd and Eclipse Tomcat (Windows 7) -
my purpose connect httpd web server , eclipse tomcat application server. configured tomcat server inserting in server.xml following line:
<connector port="8009" protocol="ajp/1.3" enablelookups="false" redirectport="8443"/>
i copied mod_jk.so file httpd modules folder, created conf folder workers.properties file, contains following lines:
worker.list=myworker worker.myworker.type=ajp13 worker.myworker.host=localhost worker.myworker.port=8009
i added httpd.conf file following lines:
loadmodule jk_module modules/mod_jk.so
jkworkersfile conf/workers.properties jklogfile logs/mod_jk.log jklogstampformat "[%b %d %y - %h:%m:%s] " jkrequestlogformat "%w %v %t" jkloglevel info jkoptions +forwardkeysize +forwarduricompat -forwarddirectories alias /testapachetomcat "c:/data/testapachetomcat/" <directory "c:/data/testapachetomcat/"> allowoverride none allow </directory> <location /*/web-inf/*> deny </location> jkmount /testapachetomcat/* myworker
, started both tomcat , httpd.
bot tomcat server , httpd correctly started (if ask
http://localhost:8080/testapachetomcat/
i see app , if ask
http://localhost/
i see httpd welcome page), don't communicate (if ask
http://localhost/testapachetomcat/
i receive 404 page not found). doing wrong?
thanks much
you need remove alias , directoy tags, handled automatically. therefore location tag unnecessary too. add line jk mounting:
jkmount /testapachetomcat myworker
then shoul able access:
http://localhost/testapachetomcat/
Comments
Post a Comment