On 03.03.2009 20:18, Steve wrote:
am running multiple tomcat instances on the same server
first two are fine,
third one has errors

here are the configs
server.xml

<?xml version='1.0' encoding='utf-8'?>
<Server port="8010" shutdown="SHUTDOWN">
Define a non-SSL HTTP/1.1 Connector on port 8083
<Connector port="8083" protocol="HTTP/1.1"
redirectPort="8446" URIEncoding="UTF-8" />
port="8083" protocol="HTTP/1.1"
redirectPort="8446" />
<!-- Define a SSL HTTP/1.1 Connector on port 8446
<Connector port="8446" protocol="HTTP/1.1" SSLEnabled="true"
<!-- Define an AJP 1.3 Connector on port 8012 -->
<Connector port="8012" protocol="AJP/1.3" redirectPort="8446"
URIEncoding="UTF-8" />

So that's only for one of the instances.

httpd.conf
<VirtualHost *>
ServerName nimble-artists.up-south.com
DocumentRoot "/usr/local/www/nimbleartists.com/server/webapps/ROOT"
ServerAdmin ste...@up-south.com
ServerAlias nimble-artist.up-south.com
ErrorLog logs/www.nimbleartist.com-error_log
CustomLog logs/www.nimbleartist.com-access_log common
CustomLog logs/www.nimbleartist.com-combined_log combined
CustomLog logs/combined.log combined

That's three log files which will contain the same data :(

<Directory "/usr/local/www/nimbleartists.com/server/webapps/ROOT">
Options None
AllowOverride None
Order allow,deny
allow from all
</Directory>
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"

I would remove the last three.

JkMount / nimble-artists.up-south.com

You don't need the above JkMount, because it is a special case of the following one.

JkMount /* nimble-artists.up-south.com
ProxyPass / ajp://127.0.0.1:8012/
ProxyPassReverse / ajp://127.0.0.1:8012/

Either use mod_proxy_ajp or mod_jk to connect to a Tomcat, but you need to decide, which module you want to use.

</VirtualHost>

workers.properties
worker.list=www2.up-south.com
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
#worker.default.lbfactor=1
worker.list=www2.labiker.net
worker.default.port=8011
worker.default.host=localhost
worker.default.type=ajp13
#worker.default.lbfactor=2
worker.list=nimble-artists.up-south.com
worker.default.port=8012
worker.default.host=localhost
worker.default.type=ajp13
#worker.default.lbfactor=3

You put three workers in your worker.list, but none of them has a configuration. Instead the worker named "default", that is not in the list and thus not useable, has three conflicting configurations.

I guess you should replace "default" by "www2.up-south.com", resp. "www2.labiker.net" resp. "nimble-artists.up-south.com".

Have a look at the mod_jk documentation about valid worke names. I suggest you do not use dots in worker names, unless you know what they mean there. Use a simpe and short symbolic name, and use the same name in JkMount.

according to all this
tomcat for nimbleartists is running on port 8083 with the connector on 8012
and apache should connect on port 8012 to tomcat
however thats not happening.

Explained by the above comments.

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