From: "Прокопьев Евгений" <john@rmts.donpac.ru>
To: community@altlinux.ru
Subject: [Comm] Apache и Perl
Date: Sat, 26 Apr 2003 02:55:34 +0400
Message-ID: <3EA9BCE6.8030704@rmts.donpac.ru> (raw)
Здравствуйте!
Никогда не имел дела с Perl, поэтому не сильно бейте за глупые вопросы.
Если есть ссылки, в которых все спрашиваемое разжевано, буду только рад.
1. Чем объясняется следующее поведение apache-mod_perl:
# cat /var/www/perl/test.pl
#!/usr/bin/perl
print "Content-type: text/html\n\n <html><body>Hello</body></html>";
$ lynx -dump http://127.0.0.1:8200/test.pl
Hello
$ lynx -dump http://80.80.122.40:8200/test.pl
Forbidden
You don't have permission to access /test.pl on this server.
Можно ли его исправить и нужно ли это делать? Может в этом поведении
есть смысл?
2. Как вообще используют Perl в Apache? Как я понял, в /var/www/perl/
можно держать только perl-скрипты, но не html-странички, т.к. Apache
говорит, что доступ к ним запрещен, пока для них не выставлено право
исполнения. В последнем случае он пытается их исполнить, и, естественно,
спотыкается. Кстати, где прописано то, что содержимое папки
_обязательно_ надо исполнять?
В целом у меня создалось впечатление, что сайт, использующий perl,
должен работать так: html-часть работает под управлением обычного Apache
и вызывает perl-скрипты, которыми заведует apache-mod_perl. Только не
будет ли эта схема работать медленнее cgi? И как вызывать скрипты, если
http://80.80.122.40:8200/test.pl недоступен?
Каталог /var/www/cgi-bin - это реликт? Как мне недавно здесь сказали,
Perl в виде cgi в ALM нет.
Какова вообще должна быть структура сервера, предоставляющего
виртуальный хостинг с perl? Насколько это эффективно без cgi, т.е.
средствами ALM?
У меня сейчас полная каша в голове, как-то все это слишком запутано по
сравнению с PHP и safe_mode в нем.
--
С уважением, Прокопьев Евгений
next reply other threads:[~2003-04-25 22:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-25 22:55 Прокопьев Евгений [this message]
2003-04-25 21:18 ` Sergey Degtyaryov
2003-04-26 7:10 ` Amodeus
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=3EA9BCE6.8030704@rmts.donpac.ru \
--to=john@rmts.donpac.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