Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conf is blocking Let's encrypt challenge #42

Open
travisbotello opened this issue Sep 26, 2018 · 2 comments
Open

Conf is blocking Let's encrypt challenge #42

travisbotello opened this issue Sep 26, 2018 · 2 comments

Comments

@travisbotello
Copy link

I am using auto-renewal certificates from Let's encrypt for my shopware installations. The problem with this config is that it somehow blocks the access to the let's encrypt files. Any idea how to bypass this issue?

Thanks in advance

@emilv
Copy link
Contributor

emilv commented Nov 8, 2018

We have this in our server block (https://github.com/bcremer/shopware-with-nginx/blob/95569547f220583097a575490eb71ada39fe1716/sites-available/example.com.conf):

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

@travisbotello
Copy link
Author

Thanks @emilv. However this didn't work on our server since we already have that implemented in our general server block. We just removed this block:

## Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
#location ~ /\. {
#    deny all;
#    access_log off;
#    log_not_found off;
#}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants