* Re: [Comm] Only Apache CGI
@ 2003-12-05 11:44 Aleksander N. Gorohovski
0 siblings, 0 replies; only message in thread
From: Aleksander N. Gorohovski @ 2003-12-05 11:44 UTC (permalink / raw)
To: community
>>И возвращаясь обратно к вопросу:
>> Как можно сделать так, чтобы файл 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
Последнее просто гениально!
Как я балда, сам не додумался.
Премного благодарен Всем и особенно Епифанову Сергею!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-05 11:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-05 11:44 [Comm] Only Apache CGI Aleksander N. Gorohovski
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