I added in OVH Zone DNS : Domain: phpmyadmin.domain.com. TTL: 0 type: CNAME target: domain.com.
in Webmin now
1 - go to Servers > Apache Webserver.
2 - From that page, we select “create new virtual host”.
3 - Handle connections to address: We select the specific address… : “the IP address”,
Server Name : “phpmyadmin.mysite.com”,
Document Root: We enter the path of sub-domain : “/home/mysite/public_html/phpmyadmin”
1 - after Iadded the “A record” via Webmin. We go to Servers > BIND DNS Server.
2- Next, we selected the zone of the parent domain and clicked on “Add Record To Selected” button.
3 - In new Record Name field, we entered the subdomain name. “phpmyadmin”
In new record field, we entered the IP address.
Easier way, install virtualmin on top of webmin, and it’ll do all these small steps for you automatically, you only need to click “create new virtual server” and type your subdomain name.
What appears in the error_log and access_log when you try to visit the site?
The redirect is Chrome automatically doing it, nothing to do with your Apache config in this case (though it’s possibly you have an .htaccess file doing it), and it’s probably doing it because it can’t find the name you tried in DNS.
Why did you do this? Above you said you were adding records to your registrars DNS. You’re either hosting your DNS in your registrars servers or in the DNS server on the Webmin server. You almost certainly aren’t doing both (and you definitely shouldn’t be doing both, as the odds of sync problems and difficult to diagnose intermittent DNS problems is very high without automation).
You’re right, I added the ipv6 in “/etc/apache2/sites-available/phpmyadmin.mysite.com.conf” and I see the php code, but php doesn’t work ?
I added the log too.