$WELLKNOWN / challenge-response for nginx #34

Closed
opened 2025-12-29 00:22:55 +01:00 by adam · 1 comment
Owner

Originally created by @ghost on GitHub (Jan 19, 2016).

The config example for nginx in the README.md doesn't work for me

location /.well-known/acme-challenge {
  alias /var/www/letsencrypt;
}

I just get 403 forbidden errors when i try to access one of the challenge files via a browser and also letsencrypt.sh can't access the challenge files.

But the following config for nginx works for me:

location ^~ /.well-known/acme-challenge {
  alias /var/www/letsencrypt;
}

Not sure if that should be changed or if there could be an other issue preventing the example config for nginx work correctly in my setup.

Originally created by @ghost on GitHub (Jan 19, 2016). The config example for nginx in the README.md doesn't work for me ``` location /.well-known/acme-challenge { alias /var/www/letsencrypt; } ``` I just get 403 forbidden errors when i try to access one of the challenge files via a browser and also letsencrypt.sh can't access the challenge files. But the following config for nginx works for me: ``` location ^~ /.well-known/acme-challenge { alias /var/www/letsencrypt; } ``` Not sure if that should be changed or if there could be an other issue preventing the example config for nginx work correctly in my setup.
adam closed this issue 2025-12-29 00:22:59 +01:00
Author
Owner

@lukas2511 commented on GitHub (Jan 22, 2016):

I'm personally using location /.well-known/acme-challenge { alias /var/www/letsencrypt; }, and I don't have any problems with that. Seems to be a problem with your configuration.

@lukas2511 commented on GitHub (Jan 22, 2016): I'm personally using `location /.well-known/acme-challenge { alias /var/www/letsencrypt; }`, and I don't have any problems with that. Seems to be a problem with your configuration.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#34