@marataziat
Джангист-тракторист

Не работают cgi скрипты на apache raspberryPi?

Я хочу запускать python скрипты на raspberry Pi припомощи веб сервера apache я его настроил
<VirtualHost *:80>
<Directory "/var/www/html/cgi-bin">
AddHandler cgi-script .py
</Directory>

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

на то что в деректории /var/www/html/cgi-bin находятся скрипты python и когда я их запускаю мне пишет содержимое скрипта:
dc67c3c260424f01be2ba2fe82572c34.png
Помогите в чем проблемма?
  • Вопрос задан
  • 191 просмотр
Пригласить эксперта
Ответы на вопрос 1
twix007
@twix007
логи читать
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы