tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Change port that apache runs on in tomcat/apache setup
Date Fri, 11 Jan 2013 14:53:41 GMT

I am trying to get mod_jk to work, and it works if tomcat is listening on port 8080, but I
try to shut down port 8080 from tomcat and configure it in an Apache vhost, but apache dies.
I think I am following the rules, but obviously I am missing something fundamental. Would
appreciate help.

First I go into server.xml and comment out the following:

<Connector port="8080" protocol="HTTP/1.1"
        redirectPort="8443" />

The idea is that I want to use AJP instead of HTTP in Tomcat. 

Then I create an Apache VirtualHost with the following:

<VirtualHost *:8080>
  DocumentRoot /var/www/httpd/vhosts/
 <IfModule mod_jk.c>
  JkMount /sample sample1
  JkMount /sample/* sample1

I created a which looks like this:


As I understand it, Apache should now show up in netstat listening on port 8080, but it doesn't.
I see java listening on port 8009 as expected. Can you see what I am missing? Just want to
be able to change the port that my tomcat is access by.

Appreciate any help,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message