Welcome! Log In Create A New Profile


Multiple site configuration

May 13, 2013 12:26PM

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.

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 localhost with 192.168.x.x/site2 (root: /var/www/site2)
Site3: accessible on the subdomain sub.site2.eu and also on localhost with 192.168.x.x/subsite2 (root: /var/www/subsite2)

I have set two sites (site2 and site3) on my configuration and reachable with domain and subdomain. But i can't reach them locallly with the ipaddress/nameofsite. I have only one site accessible directly under my local ip address.

So, currently i have:

Site2 (var/www/site2: reachable with his domain site2.eu or www.site2.eu and also on the local ip 192.168.x.x
SIte3 (var/www/site3: reachable with the domain sub.site2.eu. Otherwise i can't reach him locally. I would like to reach him with 192.168.x.x/site3

Thanks for your help.
Subject Author Posted

Multiple site configuration

guillaumeserton May 13, 2013 12:26PM

Re: Multiple site configuration

B.R. May 13, 2013 01:00PM

Re: Multiple site configuration

Francis Daly May 13, 2013 05:52PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 79
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