Answer the question
In order to leave comments, you need to log in
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
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question