Ну, измените все обратно.
Это изменение позволяет получить доступ к корневому каталогу накопителя, на котором установлен wamp. НЕ ХОРОШАЯ ИДЕЯ. S изменить его обратно:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
, а также обратно
Listen 80
Предполагая, что вам веб-сайт находится в c:\wamp\www
и если ваша подсеть фактически 192.168.50
как вы использовали выше простой способ, чтобы обеспечить доступ к ваш сайт по локальной сети только изменить эту часть httpd.conf
Ищут
<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.2/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:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
И изменить эту часть этого раздела
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 ::1 localhost
Allow from 192.168.50
линия Allow from 192.168.50
позволит получить доступ с любого IP на этой подсети, т.е. 192.168.50.1 -> 192.168.255
Если вы поместите свой сайт в подкаталоге, то сделать это:
<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.2/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:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 ::1 localhost
</Directory>
<Directory "c:\wamp\www\sitefolder">
Options Indexes FollowSymLinks
AllowOverride all
Allow from 192.168.50
</Directory>
Это будет держать ваше WampServer домашней безопасности, но разрешить доступ к сайту в sitefolder
каждый в локальной сети.
Запустите 'ipconfig' и посмотрите, что ваш локальный IP-адрес. – Blender
это, скорее всего, проблема с брандмауэром/сетью. В зависимости от вашей ОС вам придется разрешать входящие соединения с других компьютеров. – Loopo
поэтому, когда вы открываете свой браузер и вводите свой IP-адрес, вы получаете сообщение об ошибке? если да, то скажите, какой вид. Если он слишком долго загружает страницу, это проблема с брандмауэром. – Nazar554