More specific httpd-alias.conf .well-know alias for letsencrypt?

dkzr

Verified User
Joined
Oct 17, 2013
Messages
94
Location
The Netherlands
To be able to use the directadmin.conf letsencrypt=1 setting, a generic alias is put into httpd-alias.conf:

Code:
Alias /.well-known "/var/www/html/.well-known/"

Currently, letsencrypt more specificly only uses the .well-known/acme-challenge/ url and the .well-known/ directory is also used for eg. ownCloud (.well-known/carddav or .well-known/caldav etc.). With the generic .well-known/ alias ownCloud is partly broken.

Is it possible to change the current alias to
Code:
Alias /.well-known/acme-challenge "/var/www/html/.well-known/acme-challenge/"

This should still allow for letsencrypt=1 to function while also allowing other .well-known urls.
 
Hello,

It is already. Try

Code:
./build update
./build rewrite_confs

It should be:

Code:
# head -1 /etc/httpd/conf/extra/httpd-alias.conf
Alias /.well-known/acme-challenge /var/www/html/.well-known/acme-challenge
 
Aha!

The file /usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-alias.conf still has Alias /.well-known "/var/www/html/.well-known/". I have an updated httpd-alias.conf in /usr/local/directadmin/custombuild/custom/. I've modified it accordingly.
 
Back
Top