• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Adding subdomain linked with local network IP

snooker

New Pleskian
Hi All !
I have a main domaine like: mydomain.com.
This mydomain.com works very well and we can access it from Internet.

In Plesk, I have 2 web spaces : one for mydomain.com, one for foo1.mydomain.com. I know both these web sites work very well.

I'm trying to add a subdomain like: foo1.mydomain.com.
I would like this subdomain only accessible from a local IP, like 172.17.0.1 (docker IP in fact).

I've added a line like the following in DNS settings, in plesk :
foo1.mydomain.com. A 172.17.0.1

My computer is configured to use mydomain.com as DNS server.

The command "nslookup foo1.mydomain.com" returns Address: 172.17.0.1 :) nice

So, all seem ok. But... I cannot access the web site foo1.mydomain.com.
curl foo1.mydomain.com
curl: (7) Failed to connect to foo1.mydomain.com port 80: Connection refused

.... :( ..... :( ..... :(

Plesk tells me some errors :
Unable to resolve domain

In the log file /var/log/plesk/panel.log I have :
[2021-03-16 20:34:24.481] ERR [panel] Cannot fetch DomainConnect data 404: Not Found
[2021-03-16 20:34:25.565] ERR [panel.ui] Unable to find subscription


It seems that plesk can't link the webspace with the subdomain... ?
Also, Plesk seems to try to resolve my subdomain from Internet, but, It's wrong way, I juste need a local domain resolved with local DNS server, not from my Register...

Maybe I'm doing wrong? Someone can help me?

Thank you really much.
 
I am not 100% sure, I suspect you might have to add the 172.17.0.1 IP to Plesk (Tools & Settings > IP Addresses) and then assign foo1.mydomain.com to this IP.
 
Back
Top