ERR_NAME_NOT_RESOLVED 在 WPMU 的三级域本地主机上
ERR_NAME_NOT_RESOLVED on third level domain localhost for WPMU
我正在本地主机上设置 WP 网络。我在 windows,使用 Uniform Server,我设置了这样的虚拟主机:
<VirtualHost *:${AP_PORT}>
ServerAdmin webmaster@themes.wp
DocumentRoot ${US_ROOTF}/vhosts/themeswp
ServerName themes.wp
ServerAlias www.themes.wp *.themes.wp
ErrorLog logs/themes.wp-error.log
CustomLog logs/themes.wp-access.log common
<Directory "${HOME}\vhosts\themeswp">
Options Indexes Includes
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
此外,我已将此添加到 windows 主机:
127.0.0.1 themes.wp
如果我去
themes.wp
一切正常。如果我尝试使用三级域,例如
dummy.themes.wp
我明白了
ERR_NAME_NOT_RESOLVED
Wordpress 网络告诉我的是:
Warning! Wildcard DNS may not be configured correctly!
The installer attempted to contact a random hostname (9f3c9c.themes.wp) on your domain.
This resulted in an error message: cURL error 6: Could not resolve host: 9f3c9c.themes.wp
对,themes.wp和dummy.themes.wp不同的域
快速方法:将 dummy.themes.wp 添加到您的主机文件
127.0.0.1 dummy.themes.wp
或安装任何简单的 dns 服务器,因为 hosts
不支持通配符域
我正在本地主机上设置 WP 网络。我在 windows,使用 Uniform Server,我设置了这样的虚拟主机:
<VirtualHost *:${AP_PORT}>
ServerAdmin webmaster@themes.wp
DocumentRoot ${US_ROOTF}/vhosts/themeswp
ServerName themes.wp
ServerAlias www.themes.wp *.themes.wp
ErrorLog logs/themes.wp-error.log
CustomLog logs/themes.wp-access.log common
<Directory "${HOME}\vhosts\themeswp">
Options Indexes Includes
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
此外,我已将此添加到 windows 主机:
127.0.0.1 themes.wp
如果我去
themes.wp
一切正常。如果我尝试使用三级域,例如
dummy.themes.wp
我明白了
ERR_NAME_NOT_RESOLVED
Wordpress 网络告诉我的是:
Warning! Wildcard DNS may not be configured correctly!
The installer attempted to contact a random hostname (9f3c9c.themes.wp) on your domain.
This resulted in an error message: cURL error 6: Could not resolve host: 9f3c9c.themes.wp
对,themes.wp和dummy.themes.wp不同的域
快速方法:将 dummy.themes.wp 添加到您的主机文件
127.0.0.1 dummy.themes.wp
或安装任何简单的 dns 服务器,因为 hosts
不支持通配符域