Rouncube vhost configuration on apache server.‏

Torsten Grote torsten at kolab.org
Wed Nov 19 00:00:01 CET 2014


Hi Nikolai,

I really recommend reading the Apache documentation on Vhosts as well as
mod_rewrite.

But here are some observations:

On 11/19/2014 02:02 AM, Nikolai Maziashvili wrote:
> <VirtualHost *:80>
> DocumentRoot /usr/share/roundcubemail/public_html/

Where's the server name? How should apache now for which subdomain to
serve this vhost?

>     RewriteBase /roundcubemail/

You probably just need / here.

>     RewriteRule ^/assets/(.*)$ /roundcubemail/$2 [PT,L]

Same here.

I attached my own vhost config for reference.

Kind Regards,
Torsten

-- 
Torsten Grote
Kolab.org Community Manager

e: torsten at kolab.org
w: https://Kolab.org

pgp: 0x2175A534A4F2EFA3
-------------- next part --------------
<VirtualHost 10.10.10.1:443>
        ServerName webmail.myserver.de:443
        ServerAdmin webmaster at myserver.de

        DocumentRoot /usr/share/roundcubemail/public_html 

        Alias /chwala /usr/share/chwala/public_html
        Alias /program/js/tiny_mce/ /usr/share/tinymce/www/

        <ifModule mod_rewrite.c>
            RewriteEngine On

            RewriteRule ^/[a-f0-9]{16}/(.*) /$1 [PT,L]

            # Be compatible with older packages and installed plugins.
            RewriteCond %{REQUEST_URI} ^/assets/
            RewriteCond %{REQuEST_URI} !-f
            RewriteCond %{REQuEST_URI} !-d
            RewriteRule .*/assets/(.*)$ /$1 [PT,L]
        </ifModule>

        SSLEngine On
        SSLCertificateFile      /etc/ssl/certs/webmail-myserver.pem
        SSLCertificateKeyFile   /etc/ssl/private/webmail-myserver.key
        SSLCertificateChainFile /etc/ssl/certs/ca-bundle.pem

        ErrorLog /var/log/apache2/webmail.myserver.ssl.error.log
        CustomLog /var/log/apache2/webmail.myserver.ssl.log combined
</VirtualHost> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.kolab.org/pipermail/users/attachments/20141119/297e8902/attachment.sig>


More information about the users mailing list