【发布时间】:2013-05-04 14:31:41
【问题描述】:
问题:
我在 WampServer 上安装了 Multisite,当我点击“添加站点”时,页面变为空白。
到目前为止完成:
- 已下载 WampServer。
- 已配置虚拟主机。
- 下载了亚克力,这样我就可以拥有通配符域。
- 创建数据库并安装正常的WP
- 关注 http://codex.wordpress.org/Create_A_Network 并更新到 MultiSite。
- 已登录。
- 点击了我的网站 -> 网络管理员。
- 点击站点->添加新的。
- 输入了所需的信息。
- 点击“添加站点”等待 40-50 秒。
- 页面变为空白。
如果我在浏览器中单击退格键或返回<-,然后再次单击“添加站点”,它可以正常工作,我可以访问该站点,像正常安装一样创建帖子。
任何想法都会很棒。
以下是一些技术细节:
我的 httpd-vhosts.con 是这样的:
<VirtualHost *:80>
ServerName smallurl.com
ServerAlias www.smallurl.com *.smallurl.com
DocumentRoot C:/wamp/www2
ErrorLog "C:/wamp/www2/logs/error.log"
CustomLog "C:/wamp/www2/logs/access.log" common
# - A few helpful settings...
<Directory "C:/wamp/www2">
order allow,deny
allow from all
# - Enables .htaccess files for this site
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp/www
ErrorLog "C:/wamp/www/logs/error.log"
CustomLog "C:/wamp/www/logs/access.log" common
</VirtualHost>
我的 AcrylicHost.txt:
127.0.0.1 localhost
127.0.0.1 www.smallurl.com
127.0.0.1 smallurl.com
127.0.0.1 *.smallurl.com
在 httpd.conf 中:
# Virtual hosts #yaniv#
Include conf/extra/httpd-vhosts.conf
rewrite_module 已激活。
基本上涵盖了所有内容。
任何帮助将不胜感激。
【问题讨论】:
-
使用子文件夹或子域?
-
为了确定,您的
httpd.conf中有NameVirtualHost *:80吗? -
@LeonardChalis 实际上
NameVirtualHost位于 \extras\vhost-httpd.conf` 文件中,并且仅当您仍在使用 Apache 2.2 时才有效,因为如果您使用的是 Apache 2.4,则它不再有效
标签: wordpress wamp wampserver