Apache2.4.18 錯(cuò)誤403
問(wèn)題描述
1.背景:小弟菜鳥(niǎo),想在公司局域網(wǎng)搭建web管理系統(tǒng),但是在搭建環(huán)境時(shí)遇到問(wèn)題百度1天都沒(méi)百出來(lái) 啥,都是過(guò)期復(fù)制粘貼的答案。2.環(huán)境:安裝環(huán)境:1)Win7Pro(32bit)中文(非虛擬機(jī))2)Wampserver3.0.4(Server Software:Apache/2.4.18 (Win32) PHP/5.6.19 - Port defined for Apache: 80)3.問(wèn)題描述:1)安裝完wampserver后啟動(dòng)正常,通過(guò)localhos,本機(jī)ip,127.0.0.1都可以訪(fǎng)問(wèn)正常。但是我在局域網(wǎng)其它機(jī)器上訪(fǎng)問(wèn)服務(wù)會(huì)提示訪(fǎng)問(wèn)拒絕沒(méi)有權(quán)限巴拉巴拉巴拉。。如下截圖:錯(cuò)誤日志:
[authz_core:error] [pid 4544:tid 864] [client 192.168.221.122:49359] AH01630: client denied by server configuration: C:/wamp/www/favicon.ico[authz_core:error] [pid 4544:tid 856] [client 192.168.221.122:49363] AH01630: client denied by server configuration: C:/wamp/www/
2)出現(xiàn)上面問(wèn)題讓我這個(gè)菜鳥(niǎo)都市懵逼了,百度谷歌都沒(méi)解決,大部分答案是修改http.conf目錄訪(fǎng)問(wèn)權(quán)限,然后我也修改了,允許所有訪(fǎng)問(wèn)重啟服務(wù)重啟電腦,但是還是出現(xiàn)上面訪(fǎng)問(wèn)拒絕
DocumentRoot 'c:/wamp/www'<Directory 'c:/wamp/www/'> # # Possible values for the Options directive are 'None', 'All', # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that 'MultiViews' must be named *explicitly* --- 'Options All' # doesn’t give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options +Indexes +FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be 'All', 'None', or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride all # # Controls who can get stuff from this server. ## onlineoffline tag - don’t remove# Require local Require all granted</Directory>
4.總結(jié):折騰一天了,太累人了,求大神指點(diǎn),感謝不盡
問(wèn)題解答
回答1:這個(gè)問(wèn)題也是搞了好半天。。。。。apache 2.4.18** 結(jié)果是:還需要修改 Virtual Hosts 文件在conf/extra/httpd-vhosts.conf !!!!!
<VirtualHost *:80>
ServerName localhostDocumentRoot d:/wamp/www<Directory 'd:/wamp/www/'> Options +Indexes +FollowSymLinks +MultiViews AllowOverride All #Require local Require all granted</Directory>
</VirtualHost>
回答2:把你機(jī)器上防火墻關(guān)了試試吧,在高級(jí)系統(tǒng)管理里面!
回答3:wampsever3菜單有了變化,put online/offline 功能需要開(kāi)啟,右擊服務(wù)圖片找到菜單選項(xiàng),開(kāi)啟put online/offline 菜單然后put on line就可以在其他機(jī)器訪(fǎng)問(wèn)了,但是這個(gè)功能也是通過(guò)修改 httpd.conf文件將目錄訪(fǎng)問(wèn)權(quán)限 Require local>Require all granted 但是手動(dòng)修改就不行,不知道咋回事,有知道的大神指點(diǎn)下。
相關(guān)文章:
1. Python爬蟲(chóng)如何爬取span和span中間的內(nèi)容并分別存入字典里?2. mysql - 把一個(gè)表中的數(shù)據(jù)count更新到另一個(gè)表里?3. 請(qǐng)教使用PDO連接MSSQL數(shù)據(jù)庫(kù)插入是亂碼問(wèn)題?4. mysql - 分庫(kù)分表、分區(qū)、讀寫(xiě)分離 這些都是用在什么場(chǎng)景下 ,會(huì)帶來(lái)哪些效率或者其他方面的好處5. visual-studio - Python OpenCV: 奇怪的自動(dòng)補(bǔ)全問(wèn)題6. 視頻文件不能播放,怎么辦?7. mysql 查詢(xún)身份證號(hào)字段值有效的數(shù)據(jù)8. python - 《flask web 開(kāi)發(fā)》一書(shū),數(shù)據(jù)庫(kù)中多對(duì)多關(guān)系的實(shí)現(xiàn)問(wèn)題?9. node.js - nodejs開(kāi)發(fā)中常用的連接mysql的庫(kù)10. python - 爬蟲(chóng)模擬登錄后,爬取csdn后臺(tái)文章列表遇到的問(wèn)題
