Главная страница


ru.cgi.perl

 
 - RU.CGI.PERL ------------------------------------------------------------------
 From : Alexey Karpenko                      2:5020/400     16 Aug 2001  11:51:44
 To : All
 Subject : Re: Беда
 -------------------------------------------------------------------------------- 
 
 Вот что наисано в документации
 (http://httpd.apache.org/docs-2.0/mod/mod_dir.html#directoryindex):
 
 DirectoryIndex directive
 Syntax: DirectoryIndex local-url [local-url] ...
 Default: DirectoryIndex index.html
 Context: server config, virtual host, directory, .htaccess
 Override: Indexes
 Status: Base
 Module: mod_dir
 
 The DirectoryIndex directive sets the list of resources to look for, when
 the client requests an index of the directory by specifying a / at the end
 of the a directory name. Local-url is the (%-encoded) URL of a document on
 the server relative to the requested directory; it is usually the name of a
 file in the directory. Several URLs may be given, in which case the server
 will return the first one that it finds. If none of the resources exist and
 the Indexes option is set, the server will generate its own listing of the
 directory.
 
 Example:
 
 DirectoryIndex index.html
 then a request for http://myserver/docs/ would return
 http://myserver/docs/index.html if it exists, or would list the directory if
 it did not.
 Note that the documents do not need to be relative to the directory;
 
 DirectoryIndex index.html index.txt /cgi-bin/index.pl
 would cause the CGI script /cgi-bin/index.pl to be executed if neither
 index.html or index.txt existed in a directory.
 
 Говоря локальный путь, я имел ввиду, что использовал в пути /cgi, а не
 /cgi-bin. Кто хостится на h1.ru, тот знает, что на самом деле директория
 называется cgi, но из веба видна как cgi-bin.
 
 А то что ты имеешь ввиду, скорее называется абсолютный(полный) и
 относительный пути.
 
 Саппорт еще проявляет интерес и обещал разобраться.
 
 Всем спасибо
 
 "Iliya Petrusenko" <ilushka@akela.inc.ru> wrote in message
 news:9ldlvl$ljg$1@news.demos.su...
 
 >
 > "Alexey Karpenko" <alexey_karpenko@a-n.kiev.ua> wrote in message
 > news:997797899.957585@ipt2.iptelecom.net.ua...
 > > Привет всем!
 > >
 > > Hа самом деле беда небольшая. Кто хостится на h1.ru, подскажите, как
 > > запустить скрипт вместо индексного файла, по умолчанию для домена?
 > > DirectoryIndex /cgi/script.pl в корневом .htaccess ругается 403й
 > > (запрещенная операция) ошибкой. Саппорт говорит, что нужно писать
 
 /cgi-bin
 
 > > вместо /cgi, но в документации по апачу четко написано, что путь должен
 > быть
 > > локальный. Кто в курсе, скажите.
 > Что ты подразумеваешь под "локальный"? Если действительно локальный, то
 > должен быть типа
 > /home/_типа_твоей_домашней_папки_/_что-то_типа_html_/cgi/_твой_скрипт.cgi
 > То есть, начинаться от корня, а не от твоей домашней директории...
 >
 > Удачи!
 > Илья.
 >
 >
 --- ifmail v.2.15dev5
  * Origin: <Customer of IP Telecom Ltd.> (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Беда   Alexey Karpenko   14 Aug 2001 18:06:09 
 Беда   Eugeny Goltsov   15 Aug 2001 11:34:25 
 Re: Беда   Iliya Petrusenko   15 Aug 2001 15:24:10 
 Re: Беда   Alexey Karpenko   16 Aug 2001 11:51:44 
 Re: Беда   Iliya Petrusenko   16 Aug 2001 13:22:02 
Архивное /ru.cgi.perl/20188027637f2.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional