Apache httpd uses the OpenSSL default group list unless you override it, so it offers X25519MLKEM768 automatically when mod_ssl is linked against OpenSSL 3.5 or newer. With OpenSSL 3.4 or older there is no ML-KEM support, and you need a newer OpenSSL build before any setting will help.
Enable it
To set the order explicitly, add this to the <VirtualHost *:443> block or to the server config:
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1
Groups is passed straight to OpenSSL's SSL_CONF API. Curves is a synonym in the OpenSSL manual, so older configs that use SSLOpenSSLConfCmd Curves work the same way. Hybrid comes first, and X25519 and P-256 stay as fallback for older clients.
If you serve an ECDSA certificate on P-384, add secp384r1 to the list. Restart with apachectl configtest && apachectl graceful.
Check it worked
From a machine with an OpenSSL 3.5 or newer client:
openssl s_client -connect example.com:443 -servername example.com \
-groups X25519MLKEM768 -tls1_3 </dev/null 2>/dev/null | grep -i "group"
You should see Negotiated TLS1.3 group: X25519MLKEM768.
Run a free check at https://isquantumsafe.net/ to see the negotiated group and your grade.