lighttpd lento, quase não abre

1. lighttpd lento, quase não abre

Cabral Bandeira
beyraq

(usa Arch Linux)

Enviado em 22/02/2012 - 11:38h

Olá, tenho um blog e estou tentado usar o lighttpd, só que ele fica muito lento, quase não abre, o Wordpress nem carrega totalmente, se mudo para o apache fica bom.


Segue minha config

Obrigado desde já.


nano /etc/lighttpd/lighttpd.conf

server.modules = (
# "mod_evasive"
# "mod_expire",
"mod_alias",
"mod_access",
# "mod_compress",
"mod_status",
"mod_redirect",
"mod_rewrite",
"mod_accesslog"
)

server.max-keep-alive-requests = 6
server.max-keep-alive-idle = 15
server.max-read-idle = 15
server.max-write-idle = 15

connection.kbytes-per-second = 0

evasive.max-conns-per-ip = 250

server.kbytes-per-second = 0

server.max-request-size = 100000000

server.range-requests = "disable"

server.follow-symlink = "disable"

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

dir-listing.encoding = "utf-8"

server.port = 80
server.username = "http"
server.groupname = "http"
server.document-root = "/srv/http"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "enable"
index-file.names = ( "index.html", "index.php" )
mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/pn$

var.cache_dir = "/var/cache/lighttpd"

include "conf.d/compress.conf"

include "conf.d/fastcgi.conf"

$HTTP["host"]=~ "http://barbacena.info/" {
url.rewrite-final =(

# Exclude some directories from rewriting
"^/(wp-admin|wp-includes|wp-content|gallery2)/(.*)"=>"$0",

# Exclude .php files at root from rewriting
"^/(.*.php)"=>"$0",

# Handle permalinks and feeds
"^/(.*)$"=>"/index.php/$1")
}



#######################################################################################

nano /etc/lighttpd/conf.d/fastcgi.conf

server.modules += ( "mod_fastcgi" )
index-file.names += ( "index.php" )

fastcgi.server = (
".php" => (
"localhost" => (
"socket" => "/var/run/php-fpm/php-fpm.sock",
"broken-scriptfilename" => "enable"
))
)



#######################################################################################


nano /etc/lighttpd/conf.d/compress.conf

server.modules += ( "mod_compress" )

compress.cache-dir = cache_dir + "/compress"

compress.filetype = ( "text/plain", "text/html", "text/css", "image/png", "text/javascript", "image/jpg", "im$

##
## Maximum filesize that will be compressed.
## Default is 0, which means unlimited file size.
##
#compress.max-filesize = 0

















  


2. Re: lighttpd lento, quase não abre

Cabral Bandeira
beyraq

(usa Arch Linux)

Enviado em 22/02/2012 - 21:40h

oi


3. Re: lighttpd lento, quase não abre

Luis R. C. Silva
luisrcs

(usa Linux Mint)

Enviado em 22/02/2012 - 21:43h

Prefiro o Nginx, é leve e eficiente.


4. Re: lighttpd lento, quase não abre

Cabral Bandeira
beyraq

(usa Arch Linux)

Enviado em 22/02/2012 - 21:44h

ele tem expires, fastcgi e compress bem implementados?


5. Re: lighttpd lento, quase não abre

Luis R. C. Silva
luisrcs

(usa Linux Mint)

Enviado em 22/02/2012 - 22:00h

Só nunca usei com expires, mas o restante é beleza.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts