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.