first of all I would like to mention that I am usually not a developer. Please have a little indulgence ;-)
I maintain websites of several customers, which are hosted by a provider. However, you only get a sub-domain from the provider, which is then also shown in the address bar. In order to display the own domain, I thought about redirecting the domains to my own server and integrate the external website via iFrame.
However, my server is not a primarily webserver and is only designed to host one single website. Therefore the web server always answers with its default index.html.
Do you have an idea how I can include a corresponding iFrame in this file depending on the called domain and if possible also change the title in the head? Thank you very much in advance for your help!
The index.html currently looks like this:
<html>
<head>
<title>Web Client</title>
</head>
<style>
body {
margin: 0;
padding: 0;
}
body, iframe {
width: 100%;
height: 100%;
}
iframe {
border: 0;
}
</style>
<body>
<iframe src="https://sub.domain.tld/"/>
</body>
</html>