Page 1 of 1
setup SWA on a Named Virtual host
Posted: Sun Feb 10, 2008 4:06 am
by chrismcmullan
I am new to SWA and I would like to get some information on how to install SWA on my current server (CentOS4) which is also the host of my website. i am currently running squirrelmail and would like to move to SWA 11.3. Can I install SWA on a named Virtual Host on my server? I know when SWA configures Tomcat it makes changes to the Apache (currently I run Apache2) server and I am not sure if my website (Flash) would function the same when I load SWA.
Posted: Tue Feb 12, 2008 5:06 am
by Valerion
I have done it (and it works) but you need to understand Apache fairly well. But it can be done, yes.
Do you have procedures?
Posted: Tue Feb 12, 2008 8:02 am
by chrismcmullan
Based on what I have found in the forum there are a number of Scalix New user who share the same objective. Is it possible to provide some concrete instructions on how to do it?
Posted: Wed Feb 13, 2008 3:24 am
by Valerion
The hassle is that the configurations will have to be custom-done, and it varies slightly based on version and needs. I can post mine, for example, but it may not work in your environment as is because you will have a different setup.
It will still help
Posted: Wed Feb 13, 2008 11:18 am
by chrismcmullan
Thank you for your response, I know the configurations will vary but I am interested in the frame work to give me some ideas.
Posted: Thu Feb 14, 2008 4:01 am
by Valerion
Here's mine. It may or may not work for you. Use at your own risk. Sensitive info have been replaced by <>
Code: Select all
<VirtualHost *:80>
ServerAdmin <>
ServerName <>
RewriteEngine on
RewriteRule ^(.*) https://<>:443$1 [R,L]
</VirtualHost>
<VirtualHost *:443>
ServerAdmin <>
ServerName <>
ErrorLog logs/<>-error_log
CustomLog logs/<>-access_log common
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
SSLEngine on
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:!SSLv2
SSLCACertificateFile <>
SSLCertificateFile <>
SSLCertificateKeyFile <>
<Location />
SSLOptions +StdEnvVars
AddOutputFilterByType DEFLATE text/xml text/html text/css
AddOutputFilterByType DEFLATE application/x-javascript
Order Allow,Deny
Allow from all
</Location>
<IfModule mod_setenvif.c>
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfModule>
<IfModule mod_log_config.c>
CustomLog logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</IfModule>
Alias /mail /usr/share/squirrelmail
ProxyPass /api ajp://<>:8009/api
ProxyPass /m ajp://<>:8009/m
ProxyPass /sac ajp://<>:8009/sac
ProxyPass /webmail ajp://<>:8009/webmail
ProxyPass /Scalix http://<>/Scalix
ProxyPass /omhtml http://<>/omhtml
</VirtualHost>