码迷,mamicode.com
首页 > 其他好文 > 详细

配置本地服务器

时间:2016-01-04 10:08:50      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:

1、在C:\wamp\vhosts\vhost.conf文件中添加

<VirtualHost *:80>
ServerName ***.com
ServerAlias ***.com
DocumentRoot D:\PHP\*** --项目路径
DirectoryIndex index.php index.html index.htm
<Directory D:\PHP\***>--项目路径
Options +Includes -Indexes
AllowOverride All
Order Deny,Allow
Require all granted
</Directory>
</VirtualHost>

 

2、在C:\Windows\System32\drivers\etc\hosts里面添加

127.0.0.1       ***.com

 

重启服务器

配置本地服务器

标签:

原文地址:http://www.cnblogs.com/finnlee/p/5097929.html

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