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 ]