PHP中注释:#,//,/* */
一、修改Apache配置
DocumentRoot "G:PHP" //修改完需要重启Apache
//以下二选一
----------------------------------------
1、调用Apache 公共配置vhosts.conf
路径:Apacheconfhttpd.conf
Include conf/vhosts.conf
2、或者调用Apache 公共配置下的extra/httpd-vhosts.conf
路径:Apacheconfextrahttpd.conf
Include config/extra/httpd-vhosts.conf
------------------------------------------------
3、添加虚拟主机
//DocumentRoot 文件目录
//ServerName 主域名
//ServerAlias 副域名
<VirtualHost *:80>
ServerAdmin admin@admin.com
DocumentRoot "G:/PHP/thinkphp"
ServerName i.tp.com
ServerAlias i.tp.com
ErrorLog "logs/i.tp.com-error.log"
CustomLog "logs/i.tp.com.com-access.log" common
</VirtualHost>
4、配置hosts
C:WindowsSystem32driversetchosts
127.0.0.1 i.tp.com