Set WELLKNOWN path per subdomain #87

Closed
opened 2025-12-29 00:24:32 +01:00 by adam · 2 comments
Owner

Originally created by @ghost on GitHub (Apr 15, 2016).

Hi,

I'm currently running into the issue when trying to validate a domain + multiple subdomains.
The script tries to validate the acme challenge file under:

WELLKNOWN="${BASEDIR}/public_html/.acme-challenge"

Which is the challenge directory in the website root. This works for validating example.com & www.example.com, but it doesn't work for subdomain.example.com

This subdomain is located under /public_html/subdomain/

Is it possible to set up multiple WELLKNOWN paths for the different subdomains I'm trying to validate?

One of the docs recommends to set up an alias but I'm unable to modify the apache config file. Modifying this file is restricted on the server I'm running this website on.
https://github.com/lukas2511/letsencrypt.sh/blob/master/docs/wellknown.md

Originally created by @ghost on GitHub (Apr 15, 2016). Hi, I'm currently running into the issue when trying to validate a domain + multiple subdomains. The script tries to validate the acme challenge file under: WELLKNOWN="${BASEDIR}/public_html/.acme-challenge" Which is the challenge directory in the website root. This works for validating example.com & www.example.com, but it doesn't work for subdomain.example.com This subdomain is located under /public_html/subdomain/ Is it possible to set up multiple WELLKNOWN paths for the different subdomains I'm trying to validate? One of the docs recommends to set up an alias but I'm unable to modify the apache config file. Modifying this file is restricted on the server I'm running this website on. https://github.com/lukas2511/letsencrypt.sh/blob/master/docs/wellknown.md
adam closed this issue 2025-12-29 00:24:32 +01:00
Author
Owner

@lukas2511 commented on GitHub (Apr 15, 2016):

Currently there is no way for a per-domain configuration of this path.

I'd suggest creating a symlink if that is possible, or create a hook script that moves the files to the correct directory using the deploy_challenge hook.

In the future this may change, kinda related to #105.

@lukas2511 commented on GitHub (Apr 15, 2016): Currently there is no way for a per-domain configuration of this path. I'd suggest creating a symlink if that is possible, or create a hook script that moves the files to the correct directory using the `deploy_challenge` hook. In the future this may change, kinda related to #105.
Author
Owner

@ghost commented on GitHub (Apr 15, 2016):

Thank you!

@ghost commented on GitHub (Apr 15, 2016): Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#87