View Single Post
  #3 (permalink)  
Old 09-02-2006, 08:47 PM
LMStone LMStone is offline
Moderator
 
Posts: 1,186
Default Follow Up Questions

Quote:
Originally Posted by marcmac
never hand edit main.cf, use the postconf utility to modify it. su - zimbra; man postconf; man 5 postconf
Easy, thanks.

Quote:
Originally Posted by marcmac
zmtlsctl https
tomcat restart
All this does is make httpurzimbrasite.com generate an error. What I wanted to do was redirect the user who tries going to an http page to the https page.

We do this now by having two virtual host config files in /etc/apache2/conf.d on our SLES server. One file is for redirecting port 80 traffic and the other is to handle 443 traffic. Here are the two files so you can see what I mean:


ServerName plone.rnome.com
RewriteEngine On
# RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/plone.rnome.com:80/rnome/VirtualHostRoot/$1
[L,P]
# RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/plone.rnome.com:80/rnome/VirtualHostRoot/rnome/rnomeplone/$1
[L,P]
RewriteRule ^/(.*) https://plone.rnome.com/$1 [L,R]
ErrorLog /var/log/apache2/plone.rnome.com-error_log
TransferLog /var/log/apache2/plone.rnome.com-access_log
ProxyVia on



ServerName plone.rnome.com
SSLEngine on
# SSLCertificateFile /etc/apache2/ssl.crt/server.crt
SSLCertificateFile /etc/apache2/ssl.crt/plone.rnome.com.crt
# SSLCertificateKeyFile /etc/apache2/ssl.key/server.pem
SSLCertificateKeyFile /etc/apache2/ssl.key/plone.rnome.com.key.unsecure
RewriteEngine On
RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/https/plone.rnome.com:443/rnome/rnomeplone/VirtualHostRoot/$1
[L,P]
# RewriteRule ^/(.*) https://plone.rnome.com/$1 [L,P]
ErrorLog /var/log/apache2/plone.rnome.com-error_log
TransferLog /var/log/apache2/plone.rnome.com-access_log
ProxyVia on







Quote:
Originally Posted by marcmac
( re postfix anti-uce)
This is already supported in zimbra, just add the appropriate items to ldap (search the forums or the admin guide for this)
I'll investigate further, thank you.



Quote:
Originally Posted by marcmac
Your signature is way too long.
And our attorney wanted an even longer one, so I guess it's true that you can't please all of the people all of the time... :-)

Thanks for the fast reply btw!
Mark
Reply With Quote