.well-know alias not created

nielsvanrensela

Verified User
Joined
Dec 29, 2017
Messages
10
I've enabled Let's Encrypt in directadmin.conf, I've done the rewrite_confs

But /etc/httpd/conf/extra/httpd-alias.conf does not contain the Alias /.well-known "/var/www/html/.well-known/"

If I add it manual it's there and it all works untill I do another rewrite_confs, then it's removed again.

CentOS 7, latest DA version
 
Hello,

I believe you are missing an empty line (break) in directadmin.conf. The file's content should end on a line-break or an empty line. Check it and restart directadmin, and try all the steps again.
 
Unfortunately, it's not solved. The file has a new (empty) line at the bottom. To made sure, I've removed the whiteline and created a new one. Saved the conf file, run these commands;

./build update
./build letsencrypt
./build rewrite_confs

The previous entered .well-known alias was gone again.
 
Do you have the file httpd-alias.conf in the custom directory under /usr/local/directadmin/custombuild/ ?

To protect your changes you can use /etc/httpd/conf/extra/httpd-includes.conf and add your alias there.

Control your results with


Code:
/usr/local/directadmin/directadmin c | grep lets[/FONT][/COLOR][COLOR=#333333][FONT=Monaco]
 
Back
Top