2016-09-05 68 views
1

即時嘗試打開我的wamp服務器與我的android設備,但我得到「android你沒有權限訪問/在此服務器上」apache版本是2.4 .18.i tryed修改httpd.conf文件,但它不work.Now它是這樣的:android你沒有權限訪問/在此服務器WAMP

DocumentRoot "c:/wamp64/www" 

<Directory "c:/wamp64/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 
    Order Deny,Allow 
    Allow from all 

</Directory> 

我希望你能幫助我

回答

7

對於WampServer的新版本(3.0+)你不需要到兩件事:

1)修改文件httpd.conf 轉t其中WAMP安裝如

C:\wamp64\bin\apache\apache2.4.23\conf和編輯o目錄如下:

DocumentRoot "${INSTALL_DIR}/www" 
<Directory "${INSTALL_DIR}/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 +Multiviews 

# 
# 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 all granted 

編輯要求無要求所有授予

2)現在去C:\wamp64\bin\apache\apache2.4.23\conf\extra\httpd-vhost.conf和對本地主機定義的虛擬主機做相同的更改

AllowOverride All 
Require all granted 

重新啓動它應該工作的服務器

+0

謝謝!它效果很好。 – JCarlos

+0

這就是答案......謝謝。 – aidonsnous

相關問題