Столкнулся с такой проблемой: при выполнении функции сервер пишет 500 - Internal Server Error
Функция такая:
def index(): print123 = "123" return print123
server.modules = (
"mod_access",
"mod_accesslog",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_rewrite",
"mod_cgi",
"mod_fastcgi",
"mod_setenv",
)
server.document-root = "/var/www/localhost/http"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
index-file.names = ( "index.php", "index.py", "index.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".py", ".fcgi" )
cgi.assign = ( ".py" => "/usr/bin/python" )
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 1,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "4",
"PHP_FCGI_MAX_REQUESTS" => "1000"
),
))
)
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
# default listening port for IPv6 falls back to the IPv4 port
## Use ipv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
include "hosts.conf"
Логи :
2014-02-16 19:43:31: (log.c.166) server started
2014-02-16 19:43:31: (server.c.999) WARNING: unknown config-key: server.error.log (ignored)
2014-02-16 19:43:31: (server.c.999) WARNING: unknown config-key: server.filename (ignored)
В чем может быть ошибка?