When Let's Encrypt is on, alias /webmail did not work

Discussion in 'General' started by Bili, Oct 7, 2016.

  1. Bili

    Bili New Member

    I have the problem.
    I have ispconfig 3.1 on debian 8 jessie.
    When Let's Encrypt is on for any domain, alias /webmail did not work for all domain
    When Let's Encrypt is off alias /webmail work for all domain.
    I do not know what I'm doing wrong.
    When Let's encrypt is on I have error for mydomain.com/webmail
    Code:
    The requested URL was not found on this server.
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Not sure what's going on there .. what does your /webmail alias look like? What is the output of `apachectl -S` with letsencrypt disabled vs enabled?
     
  3. Bili

    Bili New Member

    I edit roundcube.conf and work
    Old file:
    Code:
    <VirtualHost *:80>
        # Those aliases do not work properly with several hosts on your apache server
        # Uncomment them to use it or adapt them to your configuration
        #    Alias /roundcube /var/lib/roundcube
        Alias /webmail /var/lib/roundcube
    
        <Directory /var/lib/roundcube/>
          Options +FollowSymLinks
          # This is needed to parse /var/lib/roundcube/.htaccess. See its
          # content before setting AllowOverride to None.
          AllowOverride All
          <IfVersion >= 2.3>
            Require all granted
          </IfVersion>
          <IfVersion < 2.3>
            Order allow,deny
            Allow from all
          </IfVersion>
        </Directory>
    
        # Protecting basic directories:
        <Directory /var/lib/roundcube/config>
                Options -FollowSymLinks
                AllowOverride None
        </Directory>
    
        <Directory /var/lib/roundcube/temp>
                Options -FollowSymLinks
                AllowOverride None
                <IfVersion >= 2.3>
                  Require all denied
                </IfVersion>
                <IfVersion < 2.3>
                  Order allow,deny
                  Deny from all
                </IfVersion>
        </Directory>
    
        <Directory /var/lib/roundcube/logs>
                Options -FollowSymLinks
                AllowOverride None
                <IfVersion >= 2.3>
                  Require all denied
                </IfVersion>
                <IfVersion < 2.3>
                  Order allow,deny
                  Deny from all
                </IfVersion>
        </Directory>
    </VirtualHost>
    
    <IfModule mod_ssl.c>
    <VirtualHost *:443>
        # Those aliases do not work properly with several hosts on your apache server
        # Uncomment them to use it or adapt them to your configuration
        #    Alias /roundcube /var/lib/roundcube
        Alias /webmail /var/lib/roundcube
    
        <Directory /var/lib/roundcube/>
          Options +FollowSymLinks
          # This is needed to parse /var/lib/roundcube/.htaccess. See its
          # content before setting AllowOverride to None.
          AllowOverride All
          <IfVersion >= 2.3>
            Require all granted
          </IfVersion>
          <IfVersion < 2.3>
            Order allow,deny
            Allow from all
          </IfVersion>
        </Directory>
    
        # Protecting basic directories:
        <Directory /var/lib/roundcube/config>
                Options -FollowSymLinks
                AllowOverride None
        </Directory>
    
        <Directory /var/lib/roundcube/temp>
                Options -FollowSymLinks
                AllowOverride None
                <IfVersion >= 2.3>
                  Require all denied
                </IfVersion>
                <IfVersion < 2.3>
                  Order allow,deny
                  Deny from all
                </IfVersion>
        </Directory>
    
        <Directory /var/lib/roundcube/logs>
                Options -FollowSymLinks
                AllowOverride None
                <IfVersion >= 2.3>
                  Require all denied
                </IfVersion>
                <IfVersion < 2.3>
                  Order allow,deny
                  Deny from all
                </IfVersion>
        </Directory>
    
        # SSL Configuration
        SSLEngine On
        SSLProtocol All -SSLv2 -SSLv3
        SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
        SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
        #SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle
    </VirtualHost>
    </IfModule>
    
    New file:
    Code:
        # Those aliases do not work properly with several hosts on your apache server
        # Uncomment them to use it or adapt them to your configuration
        #    Alias /roundcube /var/lib/roundcube
        Alias /poczta /var/lib/roundcube
    
        <Directory /var/lib/roundcube/>
          Options +FollowSymLinks
          # This is needed to parse /var/lib/roundcube/.htaccess. See its
          # content before setting AllowOverride to None.
          AllowOverride All
          <IfVersion >= 2.3>
            Require all granted
          </IfVersion>
          <IfVersion < 2.3>
            Order allow,deny
            Allow from all
          </IfVersion>
        </Directory>
    
        # Protecting basic directories:
        <Directory /var/lib/roundcube/config>
                Options -FollowSymLinks
                AllowOverride None
        </Directory>
    
        <Directory /var/lib/roundcube/temp>
                Options -FollowSymLinks
                AllowOverride None
                <IfVersion >= 2.3>
                  Require all denied
                </IfVersion>
                <IfVersion < 2.3>
                  Order allow,deny
                  Deny from all
                </IfVersion>
        </Directory>
    
        <Directory /var/lib/roundcube/logs>
                Options -FollowSymLinks
                AllowOverride None
                <IfVersion >= 2.3>
                  Require all denied
                </IfVersion>
                <IfVersion < 2.3>
                  Order allow,deny
                  Deny from all
                </IfVersion>
        </Directory>
    
    
     

Share This Page