【发布时间】:2017-02-15 14:05:30
【问题描述】:
我正在本地主机上设置 WP Network。我在 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
【问题讨论】:
标签: wordpress apache redirect vhosts