我在本地主机上设置WP网络。我在Windows上,使用统一服务器,我已经设置了这样的虚拟主机:
<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
答案 0 :(得分:1)
是的,themes.wp和dummy.themes.wp不同的域名
快捷方式:将dummy.themes.wp添加到您的主机文件中
127.0.0.1 dummy.themes.wp
或安装任何简单的DNS服务器,因为hosts
不支持通配符域