M
M
maxtrelle2014-08-13 14:43:02
Nginx
maxtrelle, 2014-08-13 14:43:02

How to open access to a localhost site on a local network through nginx?

Using - Ubuntu Desktop 14.04 LTS
server - nginx + php5-fpm + mysql
site on - CMS Wordpress
How to share the site with local network computers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kiselev, 2014-08-13
@maxtrelle

in nginx in virtual host:
Thus, it will listen on all interfaces on port 80.
Then, either in the local DNS server (if it exists) - register an A-record for the site's domain name, or on client computers, register a correspondence record of the local ip-server and the site's domain name in the hosts file.
After that, from the client machine, contact the site by domain name and it will go to the desired address and nginx will process this request.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question