I have two questions for you.
I added to my serwer two domains. Now I see that I can login to ftp write both domains name. How set only one domain to works that server name ?
How give access alias phpmyadmin only domain which is serwer name ?
I have two questions for you.
I added to my serwer two domains. Now I see that I can login to ftp write both domains name. How set only one domain to works that server name ?
How give access alias phpmyadmin only domain which is serwer name ?
Therefore you need to get a separate IP address for the other domain name, and then configure FTP daemon to only listen on a single IP address.
Most protocols/services are not hostname aware.
That means that the application, simplified, does a hostname to IP-address name resolution and then attempts to make a connection to the IPv4 or IPv6 address that gets returned and the original hostname used will be lost. On that IP-address either a service is listening or not.
So to really offer different services for different host- and/or domain names, each host/domain needs it's own IP-address and you configure the service to listen to one IP-address and not to another.
That is (especially with limited IPv4 addresses) not always possible, so there are workarounds:
HTTP is a protocol that requires that, once the client is successfully connected to the IP-address of the web server, the client includes a Host:
header in each request, with the original hostname.
The TLS SNI extension similarly adds the original hostname to the request. That is what allows the web server to be configured to show different a different certificate and/or content (or no content) based on the original hostname used by the site visitor.
That is typically called Name Based Virtual hosting and allows a server administrator to enable different content (such as a PHPMyAdmin install) for different sites.
Although such a similar extension also exists for the FTP protocol it was a very recent addition that only came when FTP was already an old and widely implemented protocol and never really picked up.
So most FTP clients don't transmit to the server which hostname they're requesting and even when they do, most FTP servers lack the capability do something useful with that...