You don't have permission to access /repertory/on this server. 意思是:您没有访问此服务器上的权限。
通过修改vhosts.conf文件来解决
打开phpstudy → 其他选项菜单 → 打开配置文件 打开vhost.conf
phpstudy.PNG将原来的
<VirtualHost _default_:80>
DocumentRoot "D:\phpStudy\PHPTutorial\WWW"
<Directory "D:\phpStudy\PHPTutorial\WWW">
Options -Indexes -FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
改为
<VirtualHost _default_:80>
DocumentRoot "D:\phpStudy\PHPTutorial\WWW"
ServerName www.gohosts.com
ServerAlias gohosts.com
<Directory "D:\phpStudy\PHPTutorial\WWW">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
完成
网友评论