Page 1 of 1

Apache + webmail +hostname - problem

Posted: Tue Jan 23, 2007 4:36 am
by les
Hi,

Just upgraded to scalix 11. Yep, i've followed the faq and got my tomcat and ssl working fine.

the hostname of my server is gateway.server.com.au

because its a shared server scalix got setup with mail.server2.com.au

in scalix 10 i could access the sac and webmail remotely with http://mail.server2.com.au

Now in 11 i can only get to the default apache test page. But if i use http://gateway.server.com.au both work fine.

Thus scalix 11's apache config "hard codes" things to reference the hostname of the box.

I guess i could change the hostname of the box, but thats a last resort.

I've set my virtual hosts in the tomcat conf files as *:80 so they listen on all addresses, yet i still cannot access via the second url.

Can someone guide me in the right direction? I'm sure its just a few more tweaks to tomcat config files, but im not sure.

TIA,

Posted: Wed Jan 24, 2007 5:54 am
by ScalixSupport
Hi!

If you are trying to modify the FQDN, try the command:
sxmodfqdn -o oldfqdn -n newfqdn


Further details are available in the Administration Guide for Scalix 11 under heading "Changing Hostnames".

Thanks,
Subir

Posted: Wed Jan 24, 2007 9:05 am
by les
ScalixSupport wrote:Hi!

If you are trying to modify the FQDN, try the command:
sxmodfqdn -o oldfqdn -n newfqdn


Further details are available in the Administration Guide for Scalix 11 under heading "Changing Hostnames".

Thanks,
Subir


Thanks for that, but i knew about the faq. Maybe i didn't explain myself clearly, i more wanted to understand why the change. i'll try and explain again differently.....

In v 10 my hostname was gateway.scalixdomain.com
my scalix email domain was "mydomain.com"
From the internet i always accessed "mail.mydomain.com/webmail" and it worked.

After upgrading to 11 only gateway.scalixdomain.com/webmail works. mail.mydomain.com gives me the apache test page, but using /sac or /webmail gives a "not found" error.

i would prefer to use mail.mydomain.com/webmail

i can follow the faq to change the hostname, but it doesn't seem like enough. To me it needs more hand edits in tomcat config's. And i don't want to go blazing away and screw up my production system.

Can anyone shed light on what has changed between the two versions (more than what the wiki howto says), and guide as to what tomcat files need to be changed?

Would a reconfigure off the scalix server installer script help?

Posted: Wed Jan 24, 2007 9:50 am
by ScalixSupport
Hi Les!

Using the reconfigure option in installer would surely make the changes to appropriate
configuration files that you intend to edit manually.

Thanks,
Subir

Odd tomcat behaviour - SOLVED!!

Posted: Thu Jan 25, 2007 6:49 am
by les
ScalixSupport wrote:Hi Les!

Using the reconfigure option in installer would surely make the changes to appropriate
configuration files that you intend to edit manually.

Thanks,
Subir


Thanks but didn't need to do it. Neither did i have to reset any hostnames.

I found that i had only modified 50% of the tomcat files for Virtual Hosts.

/etc/opt/scalix-tomcat/connector/jk/instance-gateway.conf

there is also

/etc/opt/scalix-tomcat/connector/ajp/instance-gateway.conf

Not sure of the significance, i'm no tomcat/java expert, but once i made that change i can access webmail and sac via any address.

Still doesn't explain why during all this time my pc could remotely access the website, but other pc's couldn't. Oh well thats not important!

Thanks for your help.