84669 orang belajar
152542 orang belajar
20005 orang belajar
5487 orang belajar
7821 orang belajar
359900 orang belajar
3350 orang belajar
180660 orang belajar
48569 orang belajar
18603 orang belajar
40936 orang belajar
1549 orang belajar
1183 orang belajar
32909 orang belajar
系统:windows 8.1 服务器:Apache 编程语言:php需求:搭建泛解析环境,方便测试,不知道可以实现吗? 如果可以的话,怎么做呢?目前的思路:本机搭建dns服务器,就可以实现了,但是我的系统是windows 8.1的,貌似不能搭建dns 比如: fan.com aaa.fan.com bbb.fan.com 等都解析到:D:\www\fanjiexi\ 目录下hosts文件:127.0.0.1 fan.com
光阴似箭催人老,日月如移越少年。
Re:会飞的小猪
推荐方法 在你的本机Apache,建立virtual host,把以下的配置根据自己的需求写入到apache的配置文件。
APACHE
<VirtualHost *:80> ServerAdmin a@host.example.com DocumentRoot /var/www/xxx你想要解释的文件夹位置 ServerName xxx这个服务器的域名 ErrorLog logs/xxx.log CustomLog logsxxx.log common </VirtualHost>
================================= 在你的DNS 服务器,建立A解释
域名名称 记录类型 主机记录 解析线路 记录值 mx优先级 TTL a.com A * 默认 127.0.0.1 -- 600
Re:会飞的小猪
推荐方法
在你的本机Apache,建立virtual host,把以下的配置根据自己的需求写入到apache的配置文件。
APACHE
=================================
在你的DNS 服务器,建立A解释