Problem about config one virtual host with separated server blocks

Igor Sysoev igor at sysoev.ru
Sun Sep 5 12:15:38 MSD 2010


On Sat, Sep 04, 2010 at 11:52:28PM -0400, speedfirst wrote:

> 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.

http://nginx.org/en/docs/http/configuring_https_servers.html#single_http_https_server


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list