![]() |
Здравствуйте и добро от Соединенных Штатов UNIX и Linux Форумы! Благодарим Вас за посещение и вступления нашей мирового сообщества.
|
|
Google unix.com
|
|||||||
| Форумы | Регистрация | Правила форума | Ссылки | Альбомы | ЧАВО | Список участников | Календарь | Поиск | Сегодняшние сообщения | Отметить форумы читать |
| Веб-программирование, Web 2.0 и Mashups Обсудить веб-программирования и веб-сервер администрации, в том числе LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups и других Web API, и тем. |
Подробнее UNIX и Linux Темы форума можно найти полезные
|
||||
| Нить | Резьба для начинающих | Форум | Ответы | Последнее сообщение |
| Вы не имеете прав доступа к / на этом сервере. | aneuryzma | Веб-программирование, Web 2.0 и Mashups | 9 | 05-21-2009 02:08 PM |
| Может скрипт runned на локальный сервер удаленного доступа к серверу? | luna_soleil | Shell программирование и сценарии | 3 | 02-26-2009 05:38 PM |
| ограничение доступа к серверу | melanie_pfefer | SUN Solaris | 1 | 02-25-2008 02:55 PM |
| Возможно ли получить доступ к серверу из базы данных другого сервера. | debu | UNIX перспективных И опытных пользователей | 1 | 05-20-2007 05:42 PM |
| Не удается получить доступ к файлам на собственный сервер | Djaunl | UNIX для чайников Вопросы И Ответы | 3 | 07-20-2006 10:19 AM |
![]() |
|
|
LinkBack | Резьба Инструменты | Искать в этом Thread | Оценить Thread | Режимы дисплея |
|
|
|
||||
|
доступ к своему серверу всегда разрешен
Привет,
Я не могу отрицать, доступ к моему серверу. если я захожу http://localhost Я всегда может увидеть все файлы. Почему? Код:
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Deny from All
</Directory>
Код:
<Directory "/Users/aneuryzma/Sites">
#
# 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 MultiViews
#
# 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 None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Deny from all
</Directory>
спасибо |
|
|||||
|
См. Apache mod_access Docs.
Вот ключ: Код:
SetEnvIf User-Agent ^KnockKnock/2\.0 let_me_in
<Directory /docroot>
Order Deny,Allow
Deny from all
Allow from env=let_me_in
</Directory>
|
|
||||
|
Привет,
Я изменен Код:
<Directory "/Users/aneuryzma/Sites">
#
# 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 MultiViews
#
# 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 None
#
# Controls who can get stuff from this server.
#
Order Deny,Allow
Deny from all
Allow from env=let_me_in
</Directory>
Я также попытался Код:
Order Deny,Allow Deny from All Код:
Order Deny,Allow |
|
||||
|
да!
Sudo apachectl-K перезапустите Firefox обновилась и кэш |
![]() |
| Закладки |
| Резьба Инструменты | Искать в этом Thread |
| Режимы дисплея | Оценить эту ветку |
|
|