Virtual Hosts 的评价
Virtual Hosts 作者: Longoon
4 条评价
- 评分 1 / 5来自 sagaru,1 年前Not work properly, when I press Add new Virtual Host and enter the IP in the IP field and the new Host in the Host field, Globally Enabled checkbox and individual checkbox is checked.
The firefox error is NS_ERROR_UNKNOWN_HOST
For example:
- IP = 127.0.0.1
- Host = develop.test
==================
Edited
The issue was you have to reboot firefox v120.0.1 after install this plugin to works properly.开发者回应
发布于 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. - 评分 4 / 5来自 Tobyw7,2 年前Great add-on for web dev testing and a lot simpler than changing host files. Like others have mentioned access the site via IP address
- 评分 5 / 5来自 おさ,2 年前This is a very useful add-on if your production and development servers are set to the same domain and you don't want to switch hosts files or restart your browser every time.
- 评分 5 / 5来自 gummiost,3 年前If you for some reason can't edit your windows hosts file, then this plugin will save you. Enter the IP of the destination and the hostname.
When you access the site in the browser, remember to use the IP in the address bar and not the host.