# Link subdomain to docker (NGINX)

This section assumes an NGINX docker and you have setup your DNS to connect to you NAS via a wildcard.

1\) Enable Telnet on the NAS in Control Panel

  
[![enable_telnet.png](/uploads/images/gallery/2024-09/scaled-1680-/enable-telnet.png)](/uploads/images/gallery/2024-09/enable-telnet.png)

2\) Telnet into the NAS, I prefer putty

[![putty_telnet.png](/uploads/images/gallery/2024-09/scaled-1680-/putty-telnet.png)](/uploads/images/gallery/2024-09/putty-telnet.png)

3\) cd into the folder you can easily access or edit (in my case, a network shared folder, execute, in the terminal screen "docker ps" to find the id of your container

```
docker ps
```

```
docker  cp c0568abcdb83916:/etc/nginx/nginx.conf tmp_tim.conf


```

then edit, the config file for nginx, and do the reverse:

```
docker  cp tmp_tim.conf  c0568abcdb83916:/etc/nginx/nginx.conf 
```

Restart the container.