課程
/后端開發
/PHP
/Restful API實戰
訪問時使用 restful/articles 提示404?
使用 restful/index.php/articles ,才能訪問。
?.htaccess文件查看正常。 不知道大家有人遇到過嗎?
2017-12-23
源自:Restful API實戰 3-9
正在回答
參考?的這個答案:
http://www.xianlaiwan.cn/qadetail/211091
在 httpd-vhosts.conf?文件中,更改當前網站的配置
添加
???<Directory?"/Users/hello/PhpstormProjects/example"> ????????Options?Indexes?FollowSymLinks ????????AllowOverride?All ????</Directory>
更改后為
<VirtualHost?*:80> ????<Directory?"/Users/hello/PhpstormProjects/example"> ????????Options?Indexes?FollowSymLinks ????????AllowOverride?All ????</Directory> ???? ????DocumentRoot?"/Users/hello/PhpstormProjects/example" ????ServerName?phpexample.com ????ErrorLog?"logs/phpexample.com-error_log" ????CustomLog?"logs/phpexample.com-access_log"?common </VirtualHost>
重啟apache就正常了
舉報
PHP后端開發者如何迎上移動互聯網發展熱潮?
2 回答一直出錯,關鍵是還不知道哪出錯了...
1 回答直接訪問文件就行 不知道為啥 ?
2 回答出現錯誤:Undefined index: PHP_AUTH_USER
1 回答php 5.3可以嗎 和5。5有什么區別
1 回答老師,配置的虛擬主機api.com無法訪問呀?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-12-23
參考?的這個答案:
http://www.xianlaiwan.cn/qadetail/211091
2017-12-23
在 httpd-vhosts.conf?文件中,更改當前網站的配置
添加
更改后為
重啟apache就正常了