web hosting – ubuntu 18 website in a container in 1 server not visible from the outside

Ubuntu website in a container ( on 1 server ( not visible from the outside.
It is running in an ubuntu container 18.04.
When it is accessed from the other computer on the network, it looks good.
When accessed from the outside, I only see the default site on the server (
router redirects 80 and 443 to
I'm guessing internal DNS problem …
I need help with troubleshooting …

output of the "ufw" and "nmap" commands:

ufw status

State: inactive

nmap -P0

Start Nmap 5.21 (http://nmap.org) at 2018-11-21 11:59 EST
Nmap scan report for www.asdf.com (
The host is active (latency 0.00019s).
Not shown: 996 closed ports
22 / tcp ssh open
25 / tcp smtp open
80 / tcp opens http
443 / tcp open https

Nmap performed: 1 IP address (1 host above) scanned in 0.07 seconds

How do I proceed?

edit1: virtual host file at

Server name www.asdf.com
ServerAlias ​​asdf.com
ServerAdmin webmaster @ localhost
#DocumentRoot / var / www / html
DocumentRoot / var / www / old
ErrorLog $ {APACHE_LOG_DIR} /error.log
CustomLog $ {APACHE_LOG_DIR} /access.log combo

edit2: in other words:
The name of the website is s2.asdf.com and I use that name from the internal and external network. Seeing s2.asdf.com, they show me asdf.com from the external network, but from the inside I see s2.asdf.com

Virtual host file on s2.asdf.com (

Server name www.s2.asdf.com
ServerAlias ​​s2.asdf.com
ServerAlias ​​* .s2.asdf.com
ServerAdmin webmaster @ localhost
DocumentRoot / var / www / server
ErrorLog $ {APACHE_LOG_DIR} /error.log
CustomLog $ {APACHE_LOG_DIR} /access.log combo