2016-09-05 3 views
1

im пытается открыть мой сервер wamp с помощью моего устройства Android, но я получаю «андроид, на котором у вас нет прав доступа/на этом сервере» версия apache - 2.4 .18.i судимое изменить 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 Go t о каталоге, где установлен WAMP Е.Г.

C:\wamp64\bin\apache\apache2.4.23\conf и редактировать следующее:

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 и сделать то же самое изменение для виртуального хоста, определенного для localhost

AllowOverride All 
Require all granted 

Перезапустите сервер, он должен работать

+0

Спасибо! Он отлично работает. – JCarlos

+0

Это ответ ... Спасибо. – aidonsnous

Смежные вопросы