多语言展示
当前在线:598今日阅读:175今日分享:29

phpStudy 本地搭建虚拟主机

phpStudy 本地 域名访问 报错:Not Found  The requested URL / was not found on this server.用127.0.0.1:端口访问都是可以的 ,用域名就是报错
方法/步骤
1

.用编辑器打开hosts文件,位置:C:\Windows\System32\drivers\etc目录下

3

phpStudy\PHPTutorial\Apache\conf\extra\httpd-vhosts.conf, 打开httpd-vhosts.conf,    DocumentRoot 'E:\AQ\yuhuishenghuo'   诸肤 ServerName www.yuhuishenghuo.com    ServerAlias yuhuishenghuo.com 茄舍       Options FollowSymLinks ExecCGI      AllowOverride All      Order allow,deny      Allow from all     Require all granted 

4

重启一下还是报错,把端口改成80的  重启  又好了

推荐信息