How add custom httpd.conf code to the VirtualHosts of a domain in the directadmin interface?
I need to add this lines to redirect http to https on my domains in the VirtualHost Port 80 and 443:
I need to add this lines to redirect http to https on my domains in the VirtualHost Port 80 and 443:
Code:
<VirtualHost *:80>
ServerName www.example.com
Redirect "/" "https://www.example.com/"
</VirtualHost>
<VirtualHost *:443>
# Use HTTP Strict Transport Security to force client to use secure connections only
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
# Further Configuration goes here
[...]
</VirtualHost>