Page 1 of 1
Webmail, Ip addresses and JK_Connector
Posted: Sun Jan 03, 2010 12:10 pm
by beaner1111
Okay.
Updated Scalix from 10.0.3 installed on RHEL3
To Scalix 11.4 installed on RHEL4.
My server has two IP addresses, I need to keep it that way.
But the http/Tomcat/JK connector refuses to work on one of the two addresses, unfortunately, it's working on the wrong one.
So if I use the normal URL to access the webmail, I get a 404 error and the logs show that that Apache is looking for the webmail in /var/www/html. Which tells me it's not passing the request on the Tomcat.
However if I enter the alternate IP address instead of the URL (which points to the other IP)
It works.
Where in the system do I find how to set it so that either the proper IP will work, or ANY ip will work?
Re: Webmail, Ip addresses and JK_Connector
Posted: Mon Jan 04, 2010 1:59 am
by Valerion
/etc/opt/scalix-tomcat/connector/
Re: Webmail, Ip addresses and JK_Connector
Posted: Mon Jan 04, 2010 4:29 pm
by beaner1111
Thanks.
So I looked through the files in both the jk and ajp directories.
I can't find anything in any of the files that indicates a specific IP address to use.
Is it possible that I need to add and option somewhere in order to force it to use one, the other or both?
Re: Webmail, Ip addresses and JK_Connector
Posted: Mon Jan 04, 2010 5:53 pm
by beaner1111
[root@scalix jk]# more *
::::::::::::::
app-scalix.api.conf
::::::::::::::
JkMount /api* scalix
ProxyPass /api/dav http://scalix.company.com:8080/api/dav
::::::::::::::
app-scalix.caa.conf
::::::::::::::
JkMount /caa* scalix
::::::::::::::
app-scalix.m.conf
::::::::::::::
JkMount /m* scalix
::::::::::::::
app-scalix.res.conf
::::::::::::::
JkMount /res* scalix
::::::::::::::
app-scalix.sac.conf
::::::::::::::
JkMount /sac* scalix
::::::::::::::
app-scalix.sis.conf
::::::::::::::
JkMount /sis* scalix
::::::::::::::
app-scalix.webmail.conf
::::::::::::::
JkMount /webmail* scalix
::::::::::::::
instance-scalix.conf
::::::::::::::
<VirtualHost scalix.company.com:80>
Include /etc/opt/scalix-tomcat/connector/jk/app-scalix.*.conf
</VirtualHost>
<VirtualHost scalix.company.com:443>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile /secure/scalix-08-der.cer
SSLCertificateKeyFile /secure/scalix.key
Include /etc/opt/scalix-tomcat/connector/jk/app-scalix.*.conf
</VirtualHost>
JkWorkerProperty worker.scalix.type=ajp13
JkWorkerProperty worker.scalix.host=scalix.company.com
JkWorkerProperty worker.scalix.port=8009
JkWorkerProperty worker.scalix.lbfactor=50
JkWorkerProperty worker.scalix.cachesize=10
JkWorkerProperty worker.scalix.cache_timeout=600
JkWorkerProperty worker.scalix.socket_keepalive=1
JkWorkerProperty worker.scalix.recycle_timeout=300
::::::::::::::
workers.conf
::::::::::::::
JkWorkerProperty worker.list=scalix,scalix
Re: Webmail, Ip addresses and JK_Connector
Posted: Tue Jan 05, 2010 2:47 am
by Valerion
beaner1111 wrote:::::::::::::::
instance-scalix.conf
::::::::::::::
<VirtualHost scalix.company.com:80>
Include /etc/opt/scalix-tomcat/connector/jk/app-scalix.*.conf
</VirtualHost>
<VirtualHost scalix.company.com:443>
SSLEngine on
You must change this vhost. Remember that any upgrades will overwrite your changes. Also, Scalix looks for certain services (/res, /api, /sis, etc) on a specific IP/vhost.
Re: Webmail, Ip addresses and JK_Connector
Posted: Tue Jan 05, 2010 11:59 am
by beaner1111
I think I understand, but I just want to check first.
Because of your post, I checked my hosts file.
And yes, there is a discrepancy there. The name of the Vhost is the right one, BUT the hosts file has that name pointing to the other IP address.
There is no entry in the hosts file for the other IP address (which is what I want the webmail on)
Could that be what is causing the problem?
Re: Webmail, Ip addresses and JK_Connector
Posted: Tue Jan 05, 2010 5:19 pm
by les
beaner1111 wrote:I think I understand, but I just want to check first.
Because of your post, I checked my hosts file.
And yes, there is a discrepancy there. The name of the Vhost is the right one, BUT the hosts file has that name pointing to the other IP address.
There is no entry in the hosts file for the other IP address (which is what I want the webmail on)
Could that be what is causing the problem?
Yes, but if you want to have webmail accessible on both IP's just change the VirtualHosts to be wildcard as below....
<VirtualHost *:80>
<VirtualHost *:443>
in the files....
/etc/opt/scalix-tomcat/connector/jk/instance-scalix.conf
and
/etc/opt/scalix-tomcat/connector/ajp/instance-scalix.conf
restart httpd and scalix-tomcat afterwards.
Re: Webmail, Ip addresses and JK_Connector
Posted: Wed Jan 06, 2010 12:07 am
by beaner1111
GREAT!
Thank-you!
Re: Webmail, Ip addresses and JK_Connector
Posted: Thu Feb 04, 2010 2:25 pm
by smpoole7
beaner1111 wrote:GREAT!
Thank-you!
I agree and concur.
Les, send me your address and I'll mail you a hotdog. You answered my question as well.
