Ta mis quoi comme port dans cet exemple :
<VirtualHost *:80>
Exemple chez moi pour un de mes sites sur le port 80 (mais tu lui mets ton port) :
cat /etc/httpd/conf.d/xxxxxx.conf
# xxxxx-FR
#
# xxxxx Cloud
#
#NameVirtualHost www.xxxx.fr
<VirtualHost *:80>
ServerName www.xxxx.fr
ServerAlias xxxx.fr
DocumentRoot "/var/www/html/xxxx-fr"
#DirectoryIndex index.php index.html index.htm
<Directory "/var/www/html/xxxx-fr/">
AllowOverride All
Allow from all
Order deny,allow
# Require all granted
SSLRenegBufferSize 10486000
</Directory>
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.xxxxx.fr [OR]
RewriteCond %{SERVER_NAME} =xxxxx.fr
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
</VirtualHost>