nginx数字子域返回冲突的服务器名称

时间:2018-07-21 10:52:35

标签: nginx

嗨,我正在尝试使用nginx配置服务器及其子域,但是当我尝试仅将数字用于子域时,nginx显示的服务器名称冲突。 我尝试了以下设置,它们适用于子域类型one.mydomain.com,但是如果我将相同的设置用于1.mydomain.com,则返回忽略的冲突服务器名称错误

有什么想法吗? Ubuntu 18.04 Nginx 1.14.0 SSL也包含有问题的子域

    server {
        # SSL configuration
    #
    listen [::]:443 ssl http2; # managed by Certbot
    listen 443 ssl http2; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
        root /var/www/one;
        index index.html;
        server_name one.mydomain.com;
}

谢谢

0 个答案:

没有答案