woofwoof 发表于 2013-5-16 01:57:52

用“国微CMS高性能PHP环境套”设置虚拟目录的问题求助

用“国微CMS高性能PHP环境套”设置虚拟目录的问题求助


我在WWW目录下建三个文件夹(66263,1,2)
希望用三个域名(test.com,test1.com ,test2.com)建三个站
域名test.com泛解析指向文件夹66263
域名test1.com泛解析指向文件夹1
域名test2.com泛解析指向文件夹2


该如何进行域名泛解析(我在本地测试)


在文件D:p8_serverapacheconfextra/httpd-vhosts.conf里的代码

NameVirtualHost *:80
#default

DocumentRoot D:/p8_server/www/
ServerName localhost

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all




DocumentRoot D:/p8_server/www/66263/
ServerName www.test.com
ServerAlias *.test.com



DocumentRoot D:/p8_server/www/1/
ServerName www.test1.com
ServerAlias *.test1.com




DocumentRoot D:/p8_server/www/2/
ServerName www.test2.com
ServerAlias *.test2.com




nj6481232 发表于 2013-5-16 01:58:54

设置后,需要重启apache

justinwei 发表于 2013-5-16 02:04:08

这个我知道,已经重起了,现在主要问题是不能泛解析
www头的可以访问(www.test.com      www.test2.com),其他的不能访问(xxx.test1.com
不能访问)
页: [1]
查看完整版本: 用“国微CMS高性能PHP环境套”设置虚拟目录的问题求助