Local dev - virtualhost with port in Windows

0 votes
26 views
added Mar 7 in Server issues by lcjr First Warrant Officer (11,850 points)

If you want to access your React project using the domain myreact.site.com locally, you may need to add an entry to your hosts file to map it to 127.0.0.1.

1. Edit the hosts file located at C:\Windows\System32\drivers\etc\hosts (on Windows) with administrative privileges, and add the following line:

127.0.0.1 myreact.site.com

2. Save the hosts file.

3. Once you've made these changes, you should be able to access your React project locally using the domain myreact.site.com:3535

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...