From: Alexey Khobov <alex@ormb.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Only Apache CGI
Date: Thu, 04 Dec 2003 15:41:21 +0300
Message-ID: <3FCF2B71.5050105@ormb.ru> (raw)
In-Reply-To: <3FCF3EF7.6000301@feht.dgtu.donetsk.ua>
Привет!
Aleksander N. Gorohovski wrote:
> Доброго времени суток сообщество!
>
> Кто-нибудь знает есть ли способ запретить передачу WWW-сервером Apache
> (дистрибутив ALT M2.2) содержимого файла из директории, в том случае если
> он явно будет указан в адресной строке браузера.
> Например, на сервере www есть каталог secretdir, т.е.
> /var/www/html/secretdir
> а в этом каталоге есть файл данных file.dan, т.е.
> /var/www/html/secretdir/file.dan
> Этот файл читает сценарий main.cgi: /var/www/cgi-bin/main.cgi
> который обслуживает запросы поступающие на данный www-сервер
> через html-формы.
>
> В httpd.conf для директорий
> /var/www/cgi-bin - разрешено только выполнение сценариев
> /var/www/html/secretdir - разрешено только чтение
Запретить даже чтение. Тк читается скриптом, то апачу это не надо.
Или .htaccess туда положить с запретом доступа на эту дирректорию.
--
С уважением,
Хобов Алексей
next prev parent reply other threads:[~2003-12-04 12:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-04 14:04 Aleksander N. Gorohovski
2003-12-04 12:14 ` Maxim.Savrilov
2003-12-04 12:36 ` Epiphanov Sergei
2003-12-04 12:41 ` Alexey Khobov [this message]
2003-12-04 12:45 ` Epiphanov Sergei
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=3FCF2B71.5050105@ormb.ru \
--to=alex@ormb.ru \
--cc=community@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