Webmail, Ip addresses and JK_Connector

Discuss the Scalix web client

Moderators: ScalixSupport, admin

beaner1111
Posts: 11
Joined: Tue Mar 24, 2009 10:43 am

Webmail, Ip addresses and JK_Connector

Postby beaner1111 » Sun Jan 03, 2010 12:10 pm

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?

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Re: Webmail, Ip addresses and JK_Connector

Postby Valerion » Mon Jan 04, 2010 1:59 am

/etc/opt/scalix-tomcat/connector/

beaner1111
Posts: 11
Joined: Tue Mar 24, 2009 10:43 am

Re: Webmail, Ip addresses and JK_Connector

Postby beaner1111 » Mon Jan 04, 2010 4:29 pm

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?

beaner1111
Posts: 11
Joined: Tue Mar 24, 2009 10:43 am

Re: Webmail, Ip addresses and JK_Connector

Postby beaner1111 » Mon Jan 04, 2010 5:53 pm

[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

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Re: Webmail, Ip addresses and JK_Connector

Postby Valerion » Tue Jan 05, 2010 2:47 am

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.

beaner1111
Posts: 11
Joined: Tue Mar 24, 2009 10:43 am

Re: Webmail, Ip addresses and JK_Connector

Postby beaner1111 » Tue Jan 05, 2010 11:59 am

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?

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Webmail, Ip addresses and JK_Connector

Postby les » Tue Jan 05, 2010 5:19 pm

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

Les Stott

beaner1111
Posts: 11
Joined: Tue Mar 24, 2009 10:43 am

Re: Webmail, Ip addresses and JK_Connector

Postby beaner1111 » Wed Jan 06, 2010 12:07 am

GREAT!

Thank-you!

smpoole7
Posts: 94
Joined: Wed Nov 19, 2008 11:47 pm
Location: Birmingham
Contact:

Re: Webmail, Ip addresses and JK_Connector

Postby smpoole7 » Thu Feb 04, 2010 2:25 pm

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.

:D


Return to “Scalix Web Access”



Who is online

Users browsing this forum: No registered users and 1 guest