bcremer / shopware-with-nginx

Running shopware using NGINX
http://shopware.com
BSD 2-Clause "Simplified" License
95 stars 46 forks source link

Let's Encrypt conflict #33

Closed emilv closed 7 years ago

emilv commented 7 years ago

We usually add the following location block for Let's Encrypt verification:

    location '/.well-known/acme-challenge' {
        default_type "text/plain";
        root /var/www/letsencrypt;
    }

Trying to add a new certificate we get a 403 error from https://github.com/bcremer/shopware-with-nginx/blob/a1f7ca5fb1601a24121892786d0121ed80e0fdcc/global/shopware.conf#L15

Removing that line still results in a 404 error.

emilv commented 7 years ago

Never mind, this was solved by changing our location rule to:

    location ^~ '/.well-known/acme-challenge' {
        default_type "text/plain";
        root /var/www/letsencrypt;
    }