We can use host headers to host different sites in the same port. We can access them using different host names assigned to the same port address in the host file of the machine.
You can find the host file in the following location;
C:\Windows\System32\drivers\etc
Open it using a notepad and add the host address and the desired host name you wish to use.
E.G.:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
172.11.111.111 somesite.abcompany.com
You can find the host file in the following location;
C:\Windows\System32\drivers\etc
Open it using a notepad and add the host address and the desired host name you wish to use.
E.G.:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
172.11.111.111 somesite.abcompany.com
No comments:
Post a Comment