|
ru.cgi.perl- RU.CGI.PERL ------------------------------------------------------------------ From : Artem Chuprina 2:5020/371.32 16 Aug 2001 14:34:08 To : Alexey Karpenko Subject : Re: Беда -------------------------------------------------------------------------------- AK> Вот что наисано в документации AK> (http://httpd.apache.org/docs-2.0/mod/mod_dir.html#directoryindex): AK> DirectoryIndex directive AK> Syntax: DirectoryIndex local-url [local-url] ... AK> Default: DirectoryIndex index.html AK> Context: server config, virtual host, directory, .htaccess AK> Override: Indexes AK> Status: Base AK> Module: mod_dir AK> The DirectoryIndex directive sets the list of resources to look for, when AK> the client requests an index of the directory by specifying a / at the end AK> of the a directory name. Local-url is the (%-encoded) URL of a document on AK> the server relative to the requested directory; it is usually the name of a AK> file in the directory. Several URLs may be given, in which case the server AK> will return the first one that it finds. If none of the resources exist and AK> the Indexes option is set, the server will generate its own listing of the AK> directory. AK> Example: AK> DirectoryIndex index.html AK> then a request for http://myserver/docs/ would return AK> http://myserver/docs/index.html if it exists, or would list the directory if AK> it did not. AK> Note that the documents do not need to be relative to the directory; AK> DirectoryIndex index.html index.txt /cgi-bin/index.pl AK> would cause the CGI script /cgi-bin/index.pl to be executed if neither AK> index.html or index.txt existed in a directory. AK> Говоря локальный путь, я имел ввиду, что использовал в пути /cgi, а не AK> /cgi-bin. Кто хостится на h1.ru, тот знает, что на самом деле директория AK> называется cgi, но из веба видна как cgi-bin. Читаем внимательно строчку Syntax: (можно заодно описание) и ищем там слово path (путь). Медитируем до просветления. После чего понимаем, что там написано url. После чего внимательно перечитываем то, что написал саппорт, и пишем как он велел, то есть /cgi-bin/index.pl, или как там оно у тебя. С целью полного просветления и достижения окончательной нирваны читаем какую-нибудь умную документацию про Apache на предмет того, как у него соотносятся path и url. -- Artem Chuprina <ran@ran.pp.ru> FIDO: 2:5020/371.32 --- slrn/0.9.7.0 (Linux) * Origin: AKA с подствольным плюсомётом (2:5020/371.32) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.cgi.perl/72378d9338e68.html, оценка из 5, голосов 10
|