From: Epiphanov Sergei <serpiph@entek.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Only Apache CGI
Date: Thu, 4 Dec 2003 15:45:24 +0300
Message-ID: <200312041545.24317.serpiph@nikiet.ru> (raw)
In-Reply-To: <3FCF3EF7.6000301@feht.dgtu.donetsk.ua>
В сообщении от 4 Декабрь 2003 17:04 Aleksander N. Gorohovski написал:
> И возвращаясь обратно к вопросу:
> Как можно сделать так, чтобы файл file.dan мог читать только сценарий
> main.cgi, а его содержимое не могло бы передаваться браузеру в случае
> указания его в адресной строке при обращении к серверу, например
> main.net, т.е.
>
> http://main.net/secretdir/file.dan
<Files>
Order allow,deny
Deny from all
</Files>
<Directory>
Order allow,deny
Deny from all
</Directory>
<Location>
Order allow,deny
Deny from all
</Location>
Если в основном файле конфигурации, то это всё. Если же в файле .htaccess,
то в основном файле конфигурации не забудьте про
<Directory /var/www/html/secretdir>
AllowOverride Limit
</Directory>
Еще одно решение - вынести файл нафиг из /var/www/html. Например, в
/var/www/secretdir
--
С уважением, Епифанов Сергей
prev parent reply other threads:[~2003-12-04 12:45 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
2003-12-04 12:45 ` Epiphanov Sergei [this message]
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=200312041545.24317.serpiph@nikiet.ru \
--to=serpiph@entek.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