tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Change port that apache runs on in tomcat/apache setup
Date Fri, 11 Jan 2013 16:11:54 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Vic,

On 1/11/13 9:53 AM, vicki@thepenguin.org wrote:
> 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" 
> connectionTimeout="20000" redirectPort="8443" />
> 
> The idea is that I want to use AJP instead of HTTP in Tomcat.

Ok.

> Then I create an Apache VirtualHost with the following:
> 
> 
> <VirtualHost *:8080> ServerName tomcat.sample.com DocumentRoot
> /var/www/httpd/vhosts/tomcat.sample.com <IfModule mod_jk.c> JkMount
> /sample sample1 JkMount /sample/* sample1 <IfModule> 
> </VirtualHost>
> 
> I created a workers.properties which looks like this:
> 
> worker.list=sample1 worker.sample1.port=8009 
> worker.sample1.host=localhost worker.sample1.type=ajp13

That looks good so far.

> 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.

Is anything listening on 8080? What does the Apache error log show?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDwOcoACgkQ9CaO5/Lv0PAw9QCgoOHRx/BF9XBaSrnHWLtRh35J
X1YAnRn09zmxdtf0/nt7YU2OPqM0N0en
=obqO
-----END PGP SIGNATURE-----

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


Mime
View raw message