ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vladislav Skraschuk <vlad@grsu.unibel.by>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] apache htaccess - zadolbal
Date: Mon Apr  8 22:48:01 2002
Message-ID: <3CB1B8BB.2000302@grsu.unibel.by> (raw)
In-Reply-To: <E16uaDp-000FI9-00@f4.mail.ru>

hexacon@mail.ru wrote:
>>>Честное слово, битва с апачем продолжается уже дня два!
>>>Задачка: хостюсь у товарисча, хочу ограничить доступ из web ч/з апач к одной
>>>папочке на сайте по ip, т.е. типа пущать только из подсети 192.186.0, и
>>
> больше
> 
>>>никого не пущать.
>>>Ложу файлик .htaccess в эту папочку. Прописываю в нем:
>>>.htaccess
>>><Limit>
>>>Allow from 192.186.0
>>
>>Вот здесь вы разрешили для 192.186.0
>>
>>
>>>Deny from all
>>
>>А здесь запретили для всех
>>
>>
>>></Limit>
>>>
>>>httpd.conf
>>><Directory /та/где/лежит/хтаксесс>
>>>Allow override ALL
>>><Directory>
>>>
>>>И все, звиздец, в этут папочку больше не пускает апач ВООбще ни кого, даже из
>>>192.186.0
>>>Доки уже излазили вдоль и поперек - нифига не получается.
>>
>>на всё это влияет директива Order
>>
>>Order Allow, Deny
>>соответственно сначала применяет директиву allow (разрешает доступ) а 
>>потом deny (соответственно запрещает)
>>
>>Order Deny, Allow
>>ну а это наоборот.
> 
> 
> OK. Получается мне нужно изменить .htaccess так?
> .htaccess
> <Limit>
> Order Deny, Allow
> Deny from all
> Allow from 192.186.0
> </Limit>

Да

> 
> 
> _______________________________________________
> Mandrake-russian mailing list
> Mandrake-russian@altlinux.ru
> http://altlinux.ru/mailman/listinfo/mandrake-russian
> 
> 






  reply	other threads:[~2002-04-08 22:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-08  8:18 Carry Ram
2002-04-08  8:26 ` Dmitry Lebkov
2002-04-08  9:27   ` Evgeniy Kobzev
2002-04-08 10:52     ` Re[2]: " Yuri Borunov
2002-04-08 18:33     ` Carry Ram
2002-04-08 12:26 ` Vladislav Skraschuk
2002-04-08 18:31   ` Re[2]: " Carry Ram
2002-04-08 22:48     ` Vladislav Skraschuk [this message]
2002-04-09  9:04       ` Carry Ram
2002-04-09  9:20         ` Evgeniy Kobzev
2002-04-09 13:17           ` Re[4]: " Carry Ram
2002-04-09 14:26             ` [mdk-re] " Artem K. Jouravsky
2002-04-09 19:01               ` Carry Ram
2002-04-10 11:23               ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CB1B8BB.2000302@grsu.unibel.by \
    --to=vlad@grsu.unibel.by \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git