Поставил thttpd-2.25b для тестирования, поправил конфиг, создал нужные каталоги, но вот только не работает CGI. Такая ошибка:403 Forbidden
The requested URL '/cgi-bin/test.pl' resolves to a file which is marked
executable but is not a CGI file; retrieving it is forbidden.Права дал на /cgi-bin/test.pl
#ls -la test.pl
-rwxr-xr-x 1 nobody nobody 55 Июл 20 19:50 test.cgi*Вот конфиг:
# This section overrides defaults
dir=/ext/mrv/my_local/var/www
chroot
#user=httpd# default = nobody
logfile=/ext/mrv/my_local/var/log/thttpd.log
pidfile=/ext/mrv/my_local/var/run/thttpd.pid
# This section documents defaults in effect
port=8000
cgipat="/cgi-bin/*"
# nosymlink# default = !chroot
# novhost
# nocgipat
# nothrottles
# host=0.0.0.0
# charset=iso-8859-1
test.cgi:
----------
#!/bin/shecho Content-type: text/plain
echo
echo "This is the result of script execution."Что подправить?
Спасибо.
"Проблему" решил.
Для тех кому thttpd может понадобиться - строку cgipat в конфиге НЕ нужно заключать в кавычки, то есть должно выглядить например так:
cgipat=/cgi-bin/*