Am 08.01.2015 um 09:45 schrieb André Warnier:
Sandip Gaikwad wrote:
Hi Terence,

[ snip ]


When i access http://localhost/jenkins/ i am getting following error:
Not Found

The requested URL http://jenkins/ was not found on this server.

...


*httpd.conf*
LoadModule jk_module "C:/Apache24/modules/mod_jk.so"
JkWorkersFile "C:/tomcat-connectors-1.2.40-src/conf/workers.properties"
JkLogFile "C:/Apache24/logs/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /jenkins/* worker1

Did you look at what is in the mod_jk.log file ?

Are you sure that the call "http://localhost/jenkins/"; really gets
proxied to Tomcat ?

If you do not see anything in the mod_jk.log file when you request
"http://localhost/jenkins/";, then it is probably not happening, and then
also, the error page which you get in the browser is coming from the
front-end Apache httpd, not from Tomcat (these error pages have a quite
distinctive style between httpd and Tomcat, so you should be able to
tell - with a browser other than IE).

In addition to the comments form André: JkMount is by default only active in the vhost in which you configure it. If your Apache config contains some <VirtualHost> which matches your request but doesn't contain the JkMount in its ocnfig, then the rule will not trigger.

You can add

JkMountCopy All

in the above mod_jk config block, which will active the JkMounts in any VirtualHost. If it is working then, you should remove JkMountCopy again, find the correct VirtualHost and move the JkMount from the global config to the VirtualHost.

Regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to