D
D
di2020-10-08 14:12:31
Domain Name System
di, 2020-10-08 14:12:31

How to go to local site.com?

I apologize in advance. I don't know what topic this question is.
I want to open a site that is locally located on my computer when I go to site.com on my computer.
Added to etc/hosts
127.0.0.1 site.com
what else needs to be done or is it impossible at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-10-08
@Delgus

This is standard practice.
You also need to specify the settings for the host in the web server (Nginx, Apache)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question