dedeampz 本地怎么搭建多个测试网站

织梦教程 强烈建议 2024-02-26 11:10 279 0

  NameVirtualHost *:80

  ##VhostStart

  # 这里默认站点的设置,未知域名如果IP与服务器一致,也会指向此站点

  # 如果你想通过IP访问方式或非法域名不能访问你的服务,把这站点的目录设为一个不存在目录即可

  ServerAdmin admin@myhost.comDocumentRoot "D:/DedeAMPZ/WebRoot/Default"php_admin_value open_basedir "D:/DedeAMPZ/WebRoot/Default"ServerName localhostErrorLog logs/default-error_logCustomLog logs/default-access_log common# 这里是虚拟主机(服务器上运行多个站点)设置的一个例子# 如果你要增加网站,把下面配置复制一份,修改目录和域名即可ServerAdmin admin@myhost.comServerName 127.0.0.2ServerAlias www.test1.comDocumentRoot "D:/DedeAMPZ/WebRoot/test1"php_admin_value open_basedir "D:/DedeAMPZ/WebRoot/test1"ErrorLog logs/all-error_logCustomLog logs/all-access_log common

  ServerAdmin admin@myhost.comServerName 127.0.0.3 ServerAlias www.test2.comDocumentRoot "D:/DedeAMPZ/WebRoot/test2"php_admin_value open_basedir "D:/DedeAMPZ/WebRoot/test2"ErrorLog logs/all-error_logCustomLog logs/all-access_log common

本站资源均来自互联网或会员发布,如果不小心侵犯了您的权益请与我们联系。我们将立即删除!谢谢!