10 messages in ru.sysoev.nginxRe: Do you put all your virtual host ...
FromSent OnAttachments
MaxFeb 17, 2009 9:22 pm 
Nick PearsonFeb 17, 2009 9:30 pm 
JoeFeb 17, 2009 9:34 pm 
JoeFeb 17, 2009 9:43 pm 
MaxFeb 17, 2009 11:55 pm 
Cliff WellsFeb 18, 2009 12:08 am 
David GIbbonsFeb 18, 2009 12:12 am 
JoeFeb 18, 2009 12:12 am 
Olivier BonvaletFeb 18, 2009 12:22 am 
MaxFeb 18, 2009 4:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Do you put all your virtual host info in nginx.conf?Actions...
From:Max (maxb@gmail.com)
Date:Feb 17, 2009 11:55:57 pm
List:ru.sysoev.nginx

I just wonder it will be more difficult if I want to change things for multiple sites (multiple virtual conf files). For example, if I want to change ip from 111.111.111.111 to 222.222.222.222, I just open the nginx.conf and so a search and replace, it will be replaced them all at once. If it's in multiple virtual file, I need to open those doamins which are using 111.111.111.111 and chagne them manually.

On Wed, Feb 18, 2009 at 1:43 PM, Joe <frum@gmail.com> wrote:

Yes, that's the best way to configure it.

On Wed, Feb 18, 2009 at 12:31 PM, Nick Pearson <nick@gmail.com>wrote:

The best way is to include separate config files using the include directive: http://wiki.codemongers.com/NginxHttpMainModule#include

On Tue, Feb 17, 2009 at 11:22 PM, Max <maxb@gmail.com> wrote:

Hello,

Do you put all your virtual host info in nginx.conf? Since I got a lot of virtual hosts, if I put all of them into nginx.conf, I found it's rather big. Just want to know what's the best practice to handle many virtual hosts. Thanks.