MGT Development Environment - Hosts File

For accessing your projects/domain via browser, you need to set up a host entry that points to 127.0.0.1.

Editing the hosts file on MacOs and Linux

  1. Open a terminal and run the following command:
sudo nano /etc/hosts
  1. Add your domains(s) at the end of the file and save it.
127.0.0.1 domain.mgt
127.0.0.1 blog.domain.mgt

Editing the hosts file on Windows 10

  1. Search for Notepad and run as administrator.
Editing the hosts file on Windows 10

  1. Open the hosts file and add your domains(s) at the end of the file and save it.
C:\Windows\System32\Drivers\etc\hosts