M
M
Michael2017-08-02 17:28:22
Apache HTTP Server
Michael, 2017-08-02 17:28:22

How to view a local site through a phone?

I have a local site with the site.loc address, it has a responsive site layout. Connected Apache, php, phpMyAndim, etc. When I type my ip into the browser on my phone, it redirects me to the Apche start page (index of/). But when I try to type in site.loc on my phone, it says that there is no such site on the server. Tell me what's the problem. I kind of wrote everything in the host file and everything works on the PC.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2017-08-02
@POS_troi

1. On the router, register a static dns site.loc record with an indication of the server.
2. or configure your resource on the server as default server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question