I've got a local server configured with Nginx, PHP5-FPM, MySQL and some other stuff. I'm hosting two sites.
- One static website using Twitter Bootstrap and a theme: at www.example.com
- One WordPress blog: at blog.example.com
I know I can do the same with just a WordPress site, but the question is other. I can access the two websites from the outside (with my smartphone and my data connection, for example), but the server has (obviously) a unique IP address, and when I enter an
http://192.168.1.50 (for example), it shows the first site I created, the static one.
I must disable that one in Nginx (deleting the dynamic link at /etc/nginx/sites-enabled/) and restarting the Nginx server to be able to access the second one (but only that one) from inside my LAN, and the same happens if I want to access back the first site.
Is there anyway to be able to access both sites from within my LAN?