标签:
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