課程
/后端開發
/PHP
/PHP入門篇
只能訪問test01不能訪問test02是怎么回事
2017-04-15
源自:PHP入門篇 2-5
正在回答
在e:/demo 文件夾下創建test01 和 test02文件夾了么 ?? 并且在文件夾里編輯了php文件?
錯誤提示是這個
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>
ServerName test02.com
DocumentRoot E:/Demo/test02
httpd-vhosts.conf?這個文件配置不正確,可能是ServerName不對或者DocumentRoot的路徑不對
lzy瑜 提問者
舉報
PHP入門教程輕松學習,行業大牛幫您快速掌握PHP編程基礎知識。
3 回答test01和test02的界面不對
9 回答test01.com與test02.com與localhost均訪問test01.com
1 回答test01和test02第跳轉到了iis界面
2 回答test01可以運行test02不行
1 回答test01可以了,test02打不開
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-08-13
在e:/demo 文件夾下創建test01 和 test02文件夾了么 ?? 并且在文件夾里編輯了php文件?
2017-04-16
錯誤提示是這個
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>
2017-04-16
httpd-vhosts.conf?這個文件配置不正確,可能是ServerName不對或者DocumentRoot的路徑不對