Re: Multiple site configuration

2013-05-13 Thread Francis Daly
On Mon, May 13, 2013 at 12:26:32PM -0400, guillaumeserton wrote: Hi there, > I would like to set nginx to use several website, and that they are > reachable for some of them with a domain name or in localhost. Based on the connected ip:port and the provided Host: header, nginx will choose one se

Re: Multiple site configuration

2013-05-13 Thread B.R.
The problem I see is you try to address the process of requests differently whether from inside your network or from the outside. You may already solve the problem of your outside interface easily with server names (knowing how nginx processes a req

Multiple site configuration

2013-05-13 Thread guillaumeserton
Hello, I would like to set nginx to use several website, and that they are reachable for some of them with a domain name or in localhost. Example: Site1: only accessible on localhost with 192.168.x.x/site1 (root: /var/www/site1) Site2: accessible accessible on site2.eu domain and also on localho