• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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