【问题标题】:ERR_NAME_NOT_RESOLVED on third level domain localhost for WPMUWPMU 的第三级域 localhost 上的 ERR_NAME_NOT_RESOLVED
【发布时间】: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


    【解决方案1】:

    对,themes.wp 和 dummy.themes.wp 不同的域

    快速方法:将 dummy.themes.wp 添加到您的主机文件 127.0.0.1 dummy.themes.wp

    或者安装任何简单的 dns 服务器,因为 hosts 不支持通配符域

    【讨论】:

    • 我必须创建十几个子域,我只是将它们都写在主机上,现在一切正常
    猜你喜欢
    • 2011-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-15
    • 1970-01-01
    • 2012-03-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多