mod_jk only works from local host

P

Patrick

I just installed mod_jk on my RH box using the instructions from the
following link:

http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

The following links work:

http://localhost
http://localhost:8080
http://localhost:8080/examples
http://localhost/example
http://ipaddress
http://ipaddress:8080
http://ipaddress:8080/examples

The only one that doesn't work (and clearly an important one) is

http://ipaddress/examples

The apache error log shows it just appending the /examples to the
document root (and therefore getting a 400) when coming from a remote
computer. But when it's done from localhost things work just fine.
Thoughts?
 
S

Sudsy

Patrick said:
I just installed mod_jk on my RH box using the instructions from the
following link:

http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

The following links work:

http://localhost
http://localhost:8080
http://localhost:8080/examples
http://localhost/example
http://ipaddress
http://ipaddress:8080
http://ipaddress:8080/examples

The only one that doesn't work (and clearly an important one) is

http://ipaddress/examples

The apache error log shows it just appending the /examples to the
document root (and therefore getting a 400) when coming from a remote
computer. But when it's done from localhost things work just fine.
Thoughts?

How about http://ipaddress/example?
Peer carefully back at the list you provided.
 
S

Sudsy

Patrick said:
I left an S off, sorry. It only works from localhost.

It looks like you're talking to two different servers. When you
don't include a port number then 80 will be used by default. So
it would appear that you've got one HTTP server sitting on port
80 and one on 8080. The second one is probably the stand-alone
Tomcat.
Hard to track it down without further details.
 
P

Patrick

Sudsy said:
It looks like you're talking to two different servers. When you
don't include a port number then 80 will be used by default. So
it would appear that you've got one HTTP server sitting on port
80 and one on 8080. The second one is probably the stand-alone
Tomcat.
Hard to track it down without further details.

That's exactly what I have, and the purpose of mod_jk is to take
listen to requests on 80 and pass servlet request to Tomcat,
transparent to the user. When I do it from the local machine, it will
pass request on 80 that include the servlet in the url to Tomcat.
When I do it from a different box, they are not passed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top