test01和test02

来源:2-5 WAMPServer自拟定端口号

lzy瑜

2017-04-15 15:34

只能访问test01不能访问test02是怎么回事


写回答 关注

3回答

  • 笑阳不爱钱才
    2017-08-13 22:12:44

    在e:/demo 文件夹下创建test01 和 test02文件夹了么  ? 并且在文件夹里编辑了php文件?

  • lzy瑜
    2017-04-16 09:09:46

    错误提示是这个

    Not Found

    The requested URL /test02 was not found on this server.

    Apache/2.4.23 (Win64) PHP/5.6.25 Server at localhost Port 8080


    test01 和test02是这样配置的

    <VirtualHost *:8080>

    ServerName test01.com

    DocumentRoot E:/Demo/test01

    </VirtualHost>


    <VirtualHost *:8080>

    ServerName test02.com

    DocumentRoot E:/Demo/test02

    </VirtualHost>


  • Luciferrrr
    2017-04-16 01:06:38

    httpd-vhosts.conf 这个文件配置不正确,可能是ServerName不对或者DocumentRoot的路径不对

    lzy瑜

    是对的,不知道哪里处理问题

    2017-04-16 09:02:13

    共 1 条回复 >

PHP入门篇

PHP入门教程轻松学习,行业大牛帮您快速掌握PHP编程基础知识。

455574 学习 · 6303 问题

查看课程

相似问题