Solve DirectAdmin issues

  1. Listing in DirectAdmin of domains and their PHP version would help.
    Eg: grep php /usr/local/directadmin/data/users/*/domains/*.conf |more
  2. Since version 1.57.0: The ‘Force Redirect’ for www. or without, needs a change to work until after security headers.
    The old choice can be correctly included in this way:
    – None (default) / With www / Without www;
    – Early rewrite (old) / Late 301 redirect / Late 302 redirect;
    For the longstanding redirect being put at the bottom of .htaccess, consider to put them after httpd.
    Current explanation by DirectAdmin:
    https://www.directadmin.com/features.php?id=2365
    (https://www.directadmin.com/features.php?id=2234)
  3. Defect on October 1, 2020: Control Panel DirectAdmin refuses MX ‘0 .’, See Null MX in RFC 7505.

Defect reproduction text issue no. 2:

Browse http://www.webhostingtech.nl. The changes are:
http://www.webhostingtech.nl >>>
https://www.webhostingtech.nl >>>
https://webhostingtech.nl.

Security headers, such as HSTS, are required to work with the first domain name over HTTPS. So the rewriting called “Force Redirect” combined with the early rewriting to HTTPS has to be built in differently.

100%: https://en.internet.nl/site/webhostingtech.nl/973637/
97%: https://en.internet.nl/site/www.webhostingtech.nl/973636/

Please redesign the order; I think many scenarios are catched this way:
step 1. rewrite from HTTP to HTTPS by GUI DirectAdmin (works before reaching .htaccess)
step 2a. security headers in .htaccess if read
step 2b. security headers on webserver / httpd level
step 3. 301 / 302 redirect by GUI DirectAdmin in order to achieve with or without www.
(after any security header on webserver / httpd level)

Notes:
– Own code is unnecessary if GUI DirectAdmin guarantees to do the same;
– Internet.nl: ‘Note that we consider HTTPS as a requirement for these security options.’.
Can be textual: ‘Security headers are required to work with the first domain name over HTTPS.’