码迷,mamicode.com
首页 > Web开发 > 详细

ThinkPHP配置

时间:2014-11-19 00:12:25      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:style   http   color   os   sp   文件   on   log   bs   

1、Apache\conf\httpd.conf

去掉 #Include config/extra/httpd-vhosts.conf 前面的#

2、Apache\conf\extra\httpd-vhosts.conf

把  

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "G:/Doc/Study/PHP/php/TP"
    ServerName www.b.com
    ServerAlias www.b.com
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

前面的#去掉

DocumentRoot  文件目录

服务名称 解析的地址

3、配置hosts

C:\Windows\System32\drivers\etc\hosts

127.0.0.1 地址

 

ThinkPHP配置

标签:style   http   color   os   sp   文件   on   log   bs   

原文地址:http://www.cnblogs.com/Junjun-Chen/p/4106728.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!