Apache error: AllowOverride not allowed here

Please fill out the fields below so we can help you better.

My domain is: teamyea.com

I ran this command: certbot-auto --apache -d teamyea.com -d www.teamyea.com

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for teamyea.com
tls-sni-01 challenge for www.teamyea.com
Waiting for verification...
Cleaning up challenges
Generating key (2048 bits): /etc/letsencrypt/keys/0002_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0002_csr-certbot.pem
Created an SSL vhost at /etc/apache2/sites-available/teamyea.com.conf.save-le-ssl.conf
Deploying Certificate to VirtualHost /etc/apache2/sites-available/teamyea.com.conf.save-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/teamyea.com.conf.save-le-ssl.conf
Created an SSL vhost at /etc/apache2/sites-available/teamyea.com-le-ssl.conf
Deploying Certificate to VirtualHost /etc/apache2/sites-available/teamyea.com-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/teamyea.com-le-ssl.conf
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.

AH00526: Syntax error on line 15 of /etc/apache2/sites-enabled/teamyea.com.conf.save-le-ssl.conf:
AllowOverride not allowed here

Rolling back to previous server configuration...
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.

AH00526: Syntax error on line 15 of /etc/apache2/sites-enabled/teamyea.com.conf.save-le-ssl.conf:
AllowOverride not allowed here


IMPORTANT NOTES:
 - We were unable to install your certificate, however, we
   successfully restored your server to its prior configuration.
 - Congratulations! Your certificate and chain have been saved at
   /etc/letsencrypt/live/teamyea.com/fullchain.pem. Your cert will
   expire on 2017-04-22. To obtain a new or tweaked version of this
   certificate in the future, simply run certbot-auto again with the
   "certonly" option. To non-interactively renew *all* of your
   certificates, run "certbot-auto renew"

My operating system is (include version): Ubuntu 14.04 Trusty

My web server is (include version): Apache/2.4.20 (Ubuntu) Server built: 2016-04-20T00:00:00

My hosting provider, if applicable, is: DigitalOcean

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no control panel

Virtual host config file:

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName teamyea.com
        ServerAlias www.teamyea.com

        ServerAdmin support@teamyea.com
        DocumentRoot /var/www/teamyea/public_html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        <Directory "/var/www/teamyea/public_html">
                AllowOverride All
        </Directory>

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

That configuration file, it’s probably teamyea.com.conf, right? Because it’s a HTTP VirtualHost, not HTTPS.

What’s in teamyea.com.conf.save-le-ssl.conf?

Can’t find … teamyea.com.conf.save-le-ssl.conf I think that is the config file that certbot generates and it deletes it when the configtest failed

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.