You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using http-server -P parameter to use a local virtual domain, we still need to update /etc/hosts file to be able to access the local virtual domain using http-server.
Describe the solution you'd like
My idea is to find a way to use a new virtual domain without modifying /etc/hosts file. This can be achieved by using dns to modify the OS host file and use dns.lookup() to pull from the host file.
Alternative Solutions
Additional context
The text was updated successfully, but these errors were encountered:
wassim-ben-amor
changed the title
Bypass /etc/hosts for virtual domains
Bypass etc/hosts for virtual domains
Jun 17, 2022
What's the problem this feature will solve?
Using http-server
-P
parameter to use a local virtual domain, we still need to update /etc/hosts file to be able to access the local virtual domain using http-server.Describe the solution you'd like
My idea is to find a way to use a new virtual domain without modifying /etc/hosts file. This can be achieved by using dns to modify the OS host file and use dns.lookup() to pull from the host file.
Alternative Solutions
Additional context
The text was updated successfully, but these errors were encountered: