Welcome! Log In Create A New Profile

Advanced

Problem about config one virtual host with separated server blocks

September 04, 2010 11:52PM
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.
Subject Author Posted

Problem about config one virtual host with separated server blocks

speedfirst September 04, 2010 11:52PM

Re: Problem about config one virtual host with separated server blocks

Igor Sysoev September 05, 2010 04:20AM

Re: Problem about config one virtual host with separated server blocks

speedfirst September 05, 2010 09:56PM

Re: Problem about config one virtual host with separated server blocks

Igor Sysoev September 06, 2010 07:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready