apache泛域名解析的问题我想问下比如我现在有一个目录为doc1那么我把paccom泛域名解析到这个目录然
这个就是说的是在apache服务器上怎么让不同的域名指向不同的站点目录吧。
首先配置/conf/httpd.conf文件。
把 Include conf/extra/httpd-vhosts.conf 这样前面的#号去掉。表示引用进来。
在配置httpd.vhosts.conf文件。
以你的站点为例。
DocumentRoot "E:\doc1"
ServerName *.pac.com
Options Indexes Multiviews
AllowOverride all
Allow from all
DocumentRoot "E:\doc2"
ServerName www.pac.com
Options Indexes Multiviews
AllowOverride All
Allow from all
保存。
重启apache就好了。