OpenLiteSpeed: LetsEncrypt on owned IP non-Vh items: eg: mail.domain.com (TEMPLATES)

Version 1.61.0

Bugfix
Finished

With an owned IP, there is no global VirtualHost(VH) for in the OLS ips.conf file. Some A records, like "mail.domain.com" also do not have a VirtualHost. The result, is there is no VH at all for mail.domain.com, and no include of the httpd-aliases.conf file. This is where things like the LetsEncrypt /.well-known/challenge and /roundcube aliases live. Solutiuno: Added * to the main domain of an owned IP, eg: vhDomain domain.com vhAliases * so that mail.domain.com is caught on this IP in this master alias. The vhAliases is ONLY set for the default domain on a given owned IP, for both 80/443.. but not for any subdomains. Other domain on the same IP under this User will not get the vhAliases * setting. ================ TEMPLATES Update to openlitespeed_vhost.conf Replace: vhAliases www.|SDOMAIN||SERVER_ALIASES| with: |*if WILDCARD_VHALIASES| vhAliases |WILDCARD_VHALIASES| |*else| vhAliases www.|SDOMAIN||SERVER_ALIASES| |*endif| where DA only adds WILDCARD_VHALIASES=* when the case is needed. The WILDCARD_VHALIASES token never exists if the above case is not true, eg: - owned IP - default/main domain - not a subdomain - is for both 80/443 ---- T25175

Interested to try DirectAdmin? Get a 30-day Free Trial!