标签:style blog http ar color os sp 文件 on
来源:http://www.webmaster5u.com/show.asp?id=1387
------------------------------
web站点配置
NameVirtualHost *:80 ##VhostStart # 这里默认站点的设置,未知域名如果IP与服务器一致,也会指向此站点 # 如果你想通过IP访问方式或非法域名不能访问你的服务,把这站点的目录设为一个不存在目录即可 <VirtualHost *:80> ServerAdmin admin@myhost.com DocumentRoot "E:/DedeAMPZ/WebRoot/Default" php_admin_value open_basedir "E:/DedeAMPZ/WebRoot/Default" ServerName localhost ErrorLog logs/default-error_log CustomLog logs/default-access_log common </VirtualHost> # 如果你要增加网站,把下面配置复制一份,修改目录和域名即可 <VirtualHost *:80> ServerAdmin admin@myhost.com ServerName www.test.com ServerAlias test.com DocumentRoot "E:/DedeAMPZ/WebRoot/test.com/WebRoot" php_admin_value open_basedir "E:/DedeAMPZ/WebRoot/test.com/WebRoot" ErrorLog logs/all-error_log CustomLog logs/all-access_log common </VirtualHost> #第二个 <VirtualHost *:80> ServerAdmin admin@myhost.com ServerName www.abc.com ServerAlias abc.com #serverName的别名 DocumentRoot "E:/DedeAMPZ/WebRoot/abc.com" php_admin_value open_basedir "E:/DedeAMPZ/WebRoot/abc.com" ErrorLog logs/all-error_log CustomLog logs/all-access_log common </VirtualHost> ##VhostEnd
--------------------------------------------------------------
点击修改本地host文件,复制下面到里面即可:
127.0.0.1 www.test.com
127.0.0.1 www.abc.com
----------------------以下可以不看---------------------------------------------------------------------------------------
可能的错误
http://localhost/dede/
后台会提示:
php.ini
register_globals must is Off! 那就修改一下php.ini的register_globals = Off
标签:style blog http ar color os sp 文件 on
原文地址:http://www.cnblogs.com/zff193/p/4118959.html