Virtual Hosts 的评价
Virtual Hosts 作者: Longoon
Longoon 的回应
开发者回应
发布于 1 年前Hi sagaru
It looks like you try to open develop.test, which does not exist. This addon does not help with DNS resolving, it only adds the Host header to any http request matching the IP.
"Virtual hosts" does not mean a virtualisation of the hosts file of your OS but refers to "Virtual hosting" commonly implemented by HTTP servers!
The addon does not help in resolving develop.test to 127.0.0.1. You have to access the website like you would otherwise access it.
All the addon does is to add or overwrite the "Host" HTTP header so that WHEN you access the website 127.0.0.1 it will act as if it was accessed through develop.test.
Access the page by IP and it works as expected.
If you want to access 127.0.0.1 by entering develop.test you have to map this in your hosts file of your OS. This is not what the extension does for you. The addon only provides a virtual host to the webserver.
It looks like you try to open develop.test, which does not exist. This addon does not help with DNS resolving, it only adds the Host header to any http request matching the IP.
"Virtual hosts" does not mean a virtualisation of the hosts file of your OS but refers to "Virtual hosting" commonly implemented by HTTP servers!
The addon does not help in resolving develop.test to 127.0.0.1. You have to access the website like you would otherwise access it.
All the addon does is to add or overwrite the "Host" HTTP header so that WHEN you access the website 127.0.0.1 it will act as if it was accessed through develop.test.
Access the page by IP and it works as expected.
If you want to access 127.0.0.1 by entering develop.test you have to map this in your hosts file of your OS. This is not what the extension does for you. The addon only provides a virtual host to the webserver.