Problem about config one virtual host with separated server blocks

speedfirst nginx-forum at nginx.us
Sun Sep 5 07:52:28 MSD 2010


Is it possible to write a config like this?

server {
    server_name www.example.com;
    location / {
         ...
    }
}

server {
    server_name www.example.com;
    listen 143;
    ssl on;
    ssl_certificate example.crt;
    ssl_certificate_key example.key;
}

That means I can config one domain with two separated server blocks.
This feature is handy thus I can write a config auto-gen script.

Thanks.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,127215,127215#msg-127215




More information about the nginx mailing list