I can't claim any real skill in configuring apache, all I can do is read readmes and copy and paste for examples and things I have running... So I SEEM to have made some real headway, but have not gotten wireshark going to see if it is really behaving as it seems. I would appreciate any input on a cleaner way to setup Roundcube as a virtual host only over TLS.

NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *:80>

    ServerName webmail
    ServerAlias webmail.foo.com
    RewriteEngine On
        RewriteCond  %{SERVER_PORT} !^443$
        RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
        ExpiresDefault "access plus 10 years"
        AddOutputFilterByType DEFLATE text/html text/plain text/xml

</VirtualHost>

<VirtualHost *:443>

    ServerName webmail
    ServerAlias webmail.foo.com
    SSLEngine On
    SSLCertificateFile /etc/pki/tls/certs/foo.com.crt
    SSLCertificateKeyFile /etc/pki/tls/private/foo.com.key
    DocumentRoot /usr/share/roundcubemail
    <Directory /usr/share/roundcubemail/>
            Order Deny,Allow
            Allow from all
        php_admin_flag session.cookie_secure "1"
    </Directory>

</VirtualHost>

I am seeing the following in /var/log/httpd/error_log

[Mon Dec 31 20:13:25 2012] [error] avahi_entry_group_add_service_strlst("webmail") failed: Invalid host name

Googling this message does not point me to any wisdom on what it means and what to do about it. I cannot find a string "avahi " in any of the config files, so it is coming from some module. "webmail" only appears in the entries I posted above.

Thank you for your help.

And have a good new year.


_______________________________________________
Roundcube Users mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/users

Reply via email to