A
A
Anton Dyshkant2014-03-05 13:33:22
Apache HTTP Server
Anton Dyshkant, 2014-03-05 13:33:22

How to register access to a virtual host from a local network?

There is the following situation: Ubuntu is installed on the local machine, on which Apache2 is installed. Apache runs many virtual hosts; access to sites from the local machine itself is carried out via the site.local domain (the corresponding rules like "127.1.1.6 site.local" are written in /etc/hosts).
The question is: if I write the rule "192.168.0.106 site.local" on other local machines (where 192.168.0.106 is my address on the local network), then when visiting site.local, the user sees the virtual host described in the /etc/ file apache2/sites-available/default().
It is necessary to make sure that when visiting site.local the user sees the virtual host described in the file /etc/apache2/sites-available/site.local
I hope I explained it clearly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2014-03-05
@vyshkant

Show configs at the Apache.
ports.conf and inputs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question