lukmus
04.04.2010, 01:36
вроде бы настройки верные, ошибки не выдаються, но сервер не запускаеться. iptables отрублен.
etc/lighttpd:
server.modules = ("mod_fastcgi", "mod_rewrite")
server.document-root = "/var/www/lighttpd/"
server.errorlog = "/var/log/lighttpd/error.log"
index-file.names = ( "index.rb", "index.html",
mimetype.assign = (
".rpm" => "application/x-rpm",
...
".tar.bz2" => "application/x-bzip-compressed-tar",
# default mime type
"" => "application/octet-stream",
)
#### accesslog module
accesslog.filename = "/var/log/lighttpd/access.log"
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
static-file.exclude-extensions = ( ".rb" )
server.pid-file = "/var/run/lighttpd.pid"
server.username = "lighttpd"
server.groupname = "lighttpd"
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server = (
".rb" =>
( "localhost" =>
(
"socket" => "/var/run/lighttpd/ruby-fastcgi.socket",
"bin-path" => "/usr/bin/ruby-cgi"
)
)
)
include_shell "find /etc/lighttpd/conf.d -maxdepth 1 -name '*.conf' -exec cat {} \;"
[root@localhost lighttpd]# service iptables stop
iptables: Сбрасываются правила межсетевого экрана: [ OK ]
iptables: Цепочкам назначается политика ACCEPT: filter [ OK ]
iptables: Выгружаются модули: [ OK ]
[root@localhost lighttpd]# service lighttpd start
Запускается lighttpd: [ OK ]
[root@localhost lighttpd]# service lighttpd restart
Останавливается lighttpd: [СБОЙ ]
Запускается lighttpd: [ OK ]
этот сервер поднимаю в первый раз, так что сильно не пинайте
etc/lighttpd:
server.modules = ("mod_fastcgi", "mod_rewrite")
server.document-root = "/var/www/lighttpd/"
server.errorlog = "/var/log/lighttpd/error.log"
index-file.names = ( "index.rb", "index.html",
mimetype.assign = (
".rpm" => "application/x-rpm",
...
".tar.bz2" => "application/x-bzip-compressed-tar",
# default mime type
"" => "application/octet-stream",
)
#### accesslog module
accesslog.filename = "/var/log/lighttpd/access.log"
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
static-file.exclude-extensions = ( ".rb" )
server.pid-file = "/var/run/lighttpd.pid"
server.username = "lighttpd"
server.groupname = "lighttpd"
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server = (
".rb" =>
( "localhost" =>
(
"socket" => "/var/run/lighttpd/ruby-fastcgi.socket",
"bin-path" => "/usr/bin/ruby-cgi"
)
)
)
include_shell "find /etc/lighttpd/conf.d -maxdepth 1 -name '*.conf' -exec cat {} \;"
[root@localhost lighttpd]# service iptables stop
iptables: Сбрасываются правила межсетевого экрана: [ OK ]
iptables: Цепочкам назначается политика ACCEPT: filter [ OK ]
iptables: Выгружаются модули: [ OK ]
[root@localhost lighttpd]# service lighttpd start
Запускается lighttpd: [ OK ]
[root@localhost lighttpd]# service lighttpd restart
Останавливается lighttpd: [СБОЙ ]
Запускается lighttpd: [ OK ]
этот сервер поднимаю в первый раз, так что сильно не пинайте