ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Aleksander N. Gorohovski" <angel@feht.dgtu.donetsk.ua>
To: community@altlinux.ru
Subject: [Comm] Only Apache CGI
Date: Thu, 04 Dec 2003 17:04:39 +0300
Message-ID: <3FCF3EF7.6000301@feht.dgtu.donetsk.ua> (raw)

Доброго времени суток сообщество!

Кто-нибудь знает есть ли способ запретить передачу 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		- разрешено только чтение

Для файлов в Linux
file.dan	- разрешено только чтение user "apache" (400)
main.cgi	-  разрешено только чтение и выполнение user "apache" (500)

И возвращаясь обратно к вопросу:
	Как можно сделать так, чтобы файл file.dan мог читать только сценарий
main.cgi, а его содержимое не могло бы передаваться браузеру в случае
указания его в адресной строке при обращении к серверу, например 
main.net, т.е.

http://main.net/secretdir/file.dan

С уважением,
Aleksander N. G.
Donetsk, DonNTU



             reply	other threads:[~2003-12-04 14:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-04 14:04 Aleksander N. Gorohovski [this message]
2003-12-04 12:14 ` Maxim.Savrilov
2003-12-04 12:36 ` Epiphanov Sergei
2003-12-04 12:41 ` Alexey Khobov
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=3FCF3EF7.6000301@feht.dgtu.donetsk.ua \
    --to=angel@feht.dgtu.donetsk.ua \
    --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