Jump to content

Recommended Posts

Posted

Добрый день!

Уважаемые специалисты, бьюсь уже целый час над сабжевой проблемой. Помогите или подскажите пожайлуста.

Двадцать раз прочёл

и http://httpd.apache.org/docs/2.0/howto/cgi.html и неофициальные манулы. Всё делаю строко по инструкции, но

в http://stats.mysite.ru/cgi-bin/hello.pl

все равно отображается текст:

#!/usr/bin/perl

print "Content-type: text/html\r\n\r\n";

print "Hello, World.";

Основное из httpd.conf

<Directory />

Options -FollowSymLinks -Indexes

AllowOverride None

DirectoryIndex index.html

</Directory>

<Directory "/var/www">

Options Indexes -FollowSymLinks

Options -ExecCGI

AllowOverride all

Order allow,deny

Allow from all

DirectoryIndex index.php index.html index.htm

</Directory>

<Directory "/var/www/mysite/stats/cgi-bin">

Options +ExecCGI

</Directory>

DirectoryIndex index.html index.htm index.php

AccessFileName .htaccess

AddType application/x-httpd-cgi .pl

#^^^^^^^ ЕСЛИ ЗАКОММЕНТИРОВАТЬ ТОЖЕ НЕ ПОМОЖЕТ

AddHandler perl-script .pl

#AddHandler cgi-script .pl НЕ ПОМАГАЕТ ТОЖЕ

#Action application/x-httpd-cgi "/usr/bin/perl"

#ну и собственно подключение модуля

LoadModule perl_module modules/mod_perl.so

#настройки вирт хоста. КСТАТИ интересно что при запросе

#http://stats.mysite.ru/cgi-bin/ он не ругается forbidden 403

<VirtualHost *:80>

DocumentRoot /var/www/mysite/stats

ServerName stats.mysite.ru

ScriptAlias /cgi-bin/ "/var/www/mysite/stats/cgi-bin/"

ErrorLog logs/stats_mysite_error_log

CustomLog logs/stats_mysite_access_log common

SuexecUserGroup mysite mysite

</VirtualHost>

Помогите плзз, я вроде не чайник, но вот не пойму в чём дело :'(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...