Nginx server, how to configure a main website to access with https, a forum to use secondary domain name http access?

question: [warn] conflicting server name "bbs. * .com" on 0.0.0.0bbs. 80, ignored
configures the https access of the primary domain name, how to realize the http access of the secondary domain name
the main website is configured as follows:

server {
    listen 80;
    server_name www.***.com;
    return 301 https://$server_name$request_uri;
}

server {
    listen       443 ssl;
    server_name  www.***.com;
    
    ssl on;
    index index.html index.htm index.php;
    root /www/default;
    ssl_certificate /alidata/server/nginx/conf/ssl/cert_bundle.crt;
    ssl_certificate_key /alidata/server/nginx/conf/ssl/server.key;
    ssl_session_timeout 5m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    
    ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";

    ssl_session_cache builtin:1000 shared:SSL:10m;
    ssl_dhparam /alidata/server/nginx/conf/ssl/certs/dhparam.pem;
    location ~ .*\.(php|php5)?$
    {
        -sharpfastcgi_pass  unix:/tmp/php-cgi.sock;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi.conf;
    }
}

Forum http is configured as follows:

server {
    listen 80;
    server_name bbs.***.com;
    index index.html index.htm index.php;
    root /www/default/bbs;

    location ~ .*\.(php|php5)?$
    {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi.conf;
    }

    access_log /alidata/log/nginx/access/bbs.log;
}

how can I configure to ensure normal access to both websites?

Mar.11,2021

can't I merge?


Open ssl without writing two server

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bee729-31c07.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bee729-31c07.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?