lighttpd running but connection refused
Added by iacchi almost 13 years ago
Hi everyone,
I'm running lighttpd on a QNAP NAS with Debian Wheezy installed and using the Debian package for lighttpd (so 1.4.30 currently).
I've installed and set it up and everything was going fine, except today (without touching everything) it stopped working. I've tried to restart lighttpd and the whole operating system, too, with no luck.
Basically, lighttpd seems to be running fine (there's its instance shown in ps, together with php; there's no error in the log file, except for the entries telling me that I restarted it) but if I try to open a webpage with Firefox it times out, while links tell me that the connection (even for localhost) is refused.
If it's useful, lighttpd user is www-data.
I'm quite new on lighttpd and I've run out of idea already. Any suggestion? It shouldn't matter since it was working fine until yesterday, but I'll post the configuration file, too:
server.modules = ("mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_fastcgi",
"mod_proxy",
- "mod_rewrite",
)
server.document-root = "/var/www"
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"
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
#include_shell "/usr/share/lighttpd/use-ipv6.pl"
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket"
)))
- reverse proxy for transmission
$HTTP["url"] =~ "^/transmission/.*" {
proxy.server = ( "" => (
( "host" => "127.0.0.1", "port" => 9091 )
))
}
- restrict IP address for accessing transmission
$HTTP["remoteip"] !~ "213.156.35.246" {
$HTTP["url"] =~ "^/transmission/" {
url.access-deny = ( "" )
}
}
Replies (1)
RE: lighttpd running but connection refused - Added by iacchi almost 13 years ago
Well, I don't know what happened, but again without me touching anything I've just tried again and it's working again now, go figures.
Since I can't debug it anymore, I think someone can close this thread.