配站点域名比如
http://www.qoke.com
D:\phpStudy\WWW\qoke
配资vhosts.conf 在phpstudy 打开配置文件里面
在里面加个
<VirtualHost *:80>
DocumentRoot "D:\phpStudy\WWW\qoke"
ServerName http://www.qoke.com
ServerAlias
<Directory "D:\phpStudy\WWW\qoke">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
打开phpstudy hosts里面加个
127.0.0.1 www.qoke.com
原文地址:https://www.cnblogs.com/oy123/p/9408937.html
时间: 2024-10-04 15:47:06