A
A
Artyom Mitrofanov2016-08-29 21:02:23
linux
Artyom Mitrofanov, 2016-08-29 21:02:23

How to open a site from a local server by domain?

Good day!
There is a Linux machine with a web server (apache+mysql+php) installed on it.
There is a task - to set a call to the project on this local server from another (other) computer, in the same local network, not at the address:
http://локальный_ip_сервера/project.net/.../
but directly, referring to the address:
http://локальный_ip_сервера/.../or http://project.net/.../
Please tell me how to implement this method.
Thank you in advance for your help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
evnuh, 2016-08-29
@Green_King

For http://local_ip_server/.../ - you need to specify the correct document root in Apache
For project.net/... - you need to either add your ip for project.net to your dns server on the router or register it on all computers in hosts, or use services like ngrok, but then the address will be different

S
Smithson, 2016-08-29
@Smithson

In the apache configuration, set the root directory for your site in project.net

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question