* [Sysadmins] Не выполняются cgi
@ 2007-07-25 6:13 Васюк Максим
2007-07-25 6:52 ` Alexey Shabalin
0 siblings, 1 reply; 4+ messages in thread
From: Васюк Максим @ 2007-07-25 6:13 UTC (permalink / raw)
To: sysadmins
Здрасте!
Не выполняются cgi
server 4 аltlinux, httpd2
Подскажите где ковырнуть.
А раньше все настройки апача в одном файле!!! А сейчас по папкам
раскидали, Мне много не нада, но с лету не въехал
Спсибо
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Sysadmins] Не выполняются cgi
2007-07-25 6:13 [Sysadmins] Не выполняются cgi Васюк Максим
@ 2007-07-25 6:52 ` Alexey Shabalin
2007-07-25 7:08 ` Васюк Максим
0 siblings, 1 reply; 4+ messages in thread
From: Alexey Shabalin @ 2007-07-25 6:52 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
a2enmod cgi
> Не выполняются cgi
> server 4 аltlinux, httpd2
> Подскажите где ковырнуть.
>
> А раньше все настройки апача в одном файле!!! А сейчас по папкам
> раскидали, Мне много не нада, но с лету не въехал
>
> Спсибо
--
Alexey Shabalin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Sysadmins] Не выполняются cgi
2007-07-25 6:52 ` Alexey Shabalin
@ 2007-07-25 7:08 ` Васюк Максим
2007-07-31 7:06 ` Avramenko Andrew
0 siblings, 1 reply; 4+ messages in thread
From: Васюк Максим @ 2007-07-25 7:08 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Стоит Апач 2, все по-умолчанию, пишу http://server/cgi-bin/test-cgi , и
вместо того чтобы скрипту исполниться он выдает листинг (((
В конфиге вроде прописано
ScriptAlias /cgi-bin/ "/var/www/apache2/cgi-bin/"
</IfModule>
#
# "/var/www/apache2/cgi-bin" should be changed to whatever your
ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/apache2/cgi-bin">
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Options None
<IfModule authz_host_module>
Order allow,deny
Allow from all
</IfModule>
</Directory>
вот сам скрипт
#!/bin/sh
# disable filename globbing
set -f
echo "Content-type: text/plain; charset=iso-8859-1"
echo
echo CGI/1.0 test script report:
echo
echo argc is $#. argv is "$*".
echo
echo SERVER_SOFTWARE = $SERVER_SOFTWARE
echo SERVER_NAME = $SERVER_NAME
echo GATEWAY_INTERFACE = $GATEWAY_INTERFACE
echo SERVER_PROTOCOL = $SERVER_PROTOCOL
echo SERVER_PORT = $SERVER_PORT
echo REQUEST_METHOD = $REQUEST_METHOD
echo HTTP_ACCEPT = "$HTTP_ACCEPT"
echo PATH_INFO = "$PATH_INFO"
echo PATH_TRANSLATED = "$PATH_TRANSLATED"
echo SCRIPT_NAME = "$SCRIPT_NAME"
echo QUERY_STRING = "$QUERY_STRING"
echo REMOTE_HOST = $REMOTE_HOST
echo REMOTE_ADDR = $REMOTE_ADDR
echo REMOTE_USER = $REMOTE_USER
echo AUTH_TYPE = $AUTH_TYPE
echo CONTENT_TYPE = $CONTENT_TYPE
echo CONTENT_LENGTH = $CONTENT_LENGTH
Заранее спасибо
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Sysadmins] Не выполняются cgi
2007-07-25 7:08 ` Васюк Максим
@ 2007-07-31 7:06 ` Avramenko Andrew
0 siblings, 0 replies; 4+ messages in thread
From: Avramenko Andrew @ 2007-07-31 7:06 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Васюк Максим пишет:
> Стоит Апач 2, все по-умолчанию, пишу http://server/cgi-bin/test-cgi , и
> вместо того чтобы скрипту исполниться он выдает листинг (((
С недавнего времени конфиги стали сильно дробленые. Хорошо это или плохо
каждый решает сам для себя. Когда это обсуждалось - никто ничего не говорил.
Для управления конфигами используются утилиты, начинающиеся на a2:
a2chkconfig a2disextra a2dismod a2disport a2dissite
a2enextra a2enmod a2enport a2ensite
en - enable
dis - disable
Как Вам уже сказали ранее, Вам необходимо использовать a2enmod cgi.
--
С уважением,
Андрей
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-31 7:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-25 6:13 [Sysadmins] Не выполняются cgi Васюк Максим
2007-07-25 6:52 ` Alexey Shabalin
2007-07-25 7:08 ` Васюк Максим
2007-07-31 7:06 ` Avramenko Andrew
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git