本地项目分享到github
具体流程:
1搭建thinkphp框架
2、apache创建虚拟主机
第一步vhosts-conf增加
<VirtualHost _default_:80>
DocumentRoot "D:\phpStudy\WWW"
<Directory "D:\phpStudy\WWW">
Options -Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\phpStudy\WWW"
ServerName www.phpStudy.net
ServerAlias phpStudy.net
<Directory "D:\phpStudy\WWW">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\WWW\ThinkPHP"
ServerName thinkphp
ServerAlias
<Directory "D:\WWW\ThinkPHP">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\phpStudy\WWW\0825"
ServerName www.0825.com
ServerAlias
<Directory "D:\phpStudy\WWW\0825">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\phpStudy\WWW\shop"
ServerName www.0901.com
ServerAlias
<Directory "D:\phpStudy\WWW\shop">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\phpStudy\WWW\shop1024\shop"
ServerName www.shop1024.com
ServerAlias
<Directory "D:\phpStudy\WWW\shop1024\shop">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>