SWA Logo Modification in Scalix 10

Discuss the Scalix web client

Moderators: ScalixSupport, admin

jpkovacic
Posts: 40
Joined: Thu Sep 08, 2005 1:00 pm

SWA Logo Modification in Scalix 10

Postby jpkovacic » Sat Feb 18, 2006 7:43 pm

I've installed Scalix 10 (upgrade from 9.4.2) for my company's Enterprise E-mail system. I've been asked to change the Scalix logo to my company's logo on the SWA login page. Another forum posting specified that this could be changed via the "index.jsp" in the tomcat /webapps/webmail directory. However, I was unable to locate this file in that directory of Scalix's tomcat version (/opt/scalix-tomcat). Is there a different approach that needs to be taken for SWA logo modification in Version 10? Is the index.jsp file located somewhere different with the "scalix-tomcat" version?

Thanks,
Joe K

mephisto

Postby mephisto » Sat Feb 18, 2006 7:55 pm


jpkovacic
Posts: 40
Joined: Thu Sep 08, 2005 1:00 pm

Postby jpkovacic » Mon Feb 20, 2006 1:10 am

Problem fixed via The Dude's solution described in the link: http://www.scalix.com/community/viewtopic.php?t=1410.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Feb 23, 2006 12:29 am

The file /opt/scalix-tomcat/webapps/webmail/WEB-INF/web.xml contains a section marked <welcome-file-list>.

To use index.html or index.htm as the default page, you need to change it to read:

Code: Select all

<welcome-file-list>
  <welcome-file>index.jsp</welcome-file>
  <welcome-file>index.html</welcome-file>
  <welcome-file>index.htm</welcome-file>
</welcome-file-list>

and restart tomcat with

Code: Select all

/etc/init.d/scalix-tomcat restart


Cheers

Dave

mabadjiev
Posts: 30
Joined: Thu Feb 23, 2006 12:57 am

Postby mabadjiev » Thu Feb 23, 2006 1:34 am

Where would be index.html or index.htm located after restarting tomcat.
Also the following line:
<welcome-file>index.htmls</welcome-file>
shouldn't it be:
<welcome-file>index.html</welcome-file>

And finally how/where is /webmail alias created?
I don't think that posting the custom 'index.html' in DocumentRoot is the greatest idea, it's a patch of the problem not a solution, and what if we run other stuff then Scalix only under Apache?

Any comments /suggestions are greatly appreciated.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Feb 23, 2006 1:38 am

I had already edited htmls to read html before you posted.

index.html should be placed in /opt/scalix-tomcat/webapps/webmail

Cheers

Dave

mabadjiev
Posts: 30
Joined: Thu Feb 23, 2006 12:57 am

Postby mabadjiev » Thu Feb 23, 2006 4:24 am

I assumed that still when it's posted in:
/opt/scalix-tomcat/webapps/webmail
the index.html is not disolayed it picks up the old one after restarting tomcat of course.
here are the files:

/opt/scalix-tomcat/webapps/webmail
[root@ns webmail]$ ls -al
total 100
drwxr-xr-x 11 root root 4096 Feb 23 00:21 .
drwxr-xr-x 13 root root 4096 Feb 20 00:26 ..
-rw-r--r-- 1 root root 4490 Feb 20 00:26 3e17213dc3f9ea4a.js
-rw-r--r-- 1 root root 16070 Feb 20 00:26 b6be00688ca77af0.js
drwxr-xr-x 2 root root 4096 Feb 20 00:26 css
-rw-r--r-- 1 root root 2413 Feb 20 00:26 debugWindow.html
-rw-r--r-- 1 root root 17074 Feb 20 00:26 f53092882b4ea77d.js
drwxr-xr-x 3 root root 4096 Feb 20 00:26 img
-rwxr--r-- 1 root root 8161 Feb 20 20:31 index.html
drwxr-xr-x 3 root root 4096 Feb 20 00:26 js
drwxr-xr-x 2 root root 4096 Feb 20 00:26 META-INF
drwxr-xr-x 2 root root 4096 Feb 20 00:26 snd
drwxr-xr-x 2 root root 4096 Feb 20 00:26 spell
drwxr-xr-x 4 root root 4096 Feb 20 00:26 WebHelp
drwxr-xr-x 7 root root 4096 Feb 22 20:45 WEB-INF
drwxr-xr-x 2 root root 4096 Feb 20 00:26 xml

Any suggestions?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Feb 23, 2006 2:18 pm

I made a slight mistake. The web.xml file needs to be order-specific so, you need to move the index.jsp line to below the index.htm/l lines and restart tomcat. Everything should work.

Cheers

Dave

mabadjiev
Posts: 30
Joined: Thu Feb 23, 2006 12:57 am

Postby mabadjiev » Fri Feb 24, 2006 1:36 am

This time it works, thanks for your help.
BTW where is the configuration for that alias /webmail, since we don't want to run apache on port 80 (http) but 443 (https) only it will be nice to know the specifics for that alias.
Thanks again.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Feb 27, 2006 2:47 pm

As this post is being referenced in response to the same question from other users, I need to add the following caveat.

If you upgrade or re-install SWA for any reason, the modifications you make to index.html and web.xml will not be retained.

So, prior to an update of any sort, please take a copy of those files and make the changes again once the update has completed successfully.

Cheers

Dave

yuceli
Posts: 44
Joined: Wed Jan 31, 2007 5:06 am

Postby yuceli » Wed Mar 21, 2007 11:49 am

I guess a lot of things have been changed with new version. The directory structure has changed considerably and I guess some XML files also changed. I can't find "<welcome-file-list>" in web.xml file. Could someone write down how to change Scalix logo to the company logo please? Thanks in advance...
Kind regards,


Yucel Inanogullari

jeffs
Posts: 30
Joined: Thu Mar 08, 2007 5:37 pm
Location: Cincinnati, OH

Postby jeffs » Wed Mar 21, 2007 5:27 pm

Hi yuceli:

The SWA path changes in version 11. Look for web.xml in

Code: Select all

/var/opt/scalix/XX/tomcat/webapps/webmail/WEB-INF

where XX = the name of the Scalix instance, which defaults to the first and last letter of the host name. Then specify your custom login page at the end of the file in this stanza:

Code: Select all

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

if you use index.html inside the /webmail folder.
hth
Jeff

yuceli
Posts: 44
Joined: Wed Jan 31, 2007 5:06 am

Postby yuceli » Thu Mar 22, 2007 12:55 pm

Jeff, thanks a lot!

Yucel
Kind regards,





Yucel Inanogullari

massspec

Postby massspec » Mon Jul 16, 2007 2:56 am

Here's a write up on how to change the webmail login page in the wiki that was helpful.

http://www.scalix.com/wiki/index.php?ti ... LOGIN_PAGE


Return to “Scalix Web Access”



Who is online

Users browsing this forum: No registered users and 6 guests

cron