Questions tagged [lighttpd]

Lighttpd ("lighty") is a fast open source web server, optimised for speed critical environments

Lighttpd (pronounced "lighty") is an open source web server optimised for speed critical environments, which is standards compliant. It attempts to be lower memory footprint, and more CPU efficient than other web servers, and is often simpler to configure. Initially it was targetted at static content, but now it is widely used for both static content and hosting CGI, PHP, Ruby, Python etc code.

More information is available on Wikipedia

596 questions
0
votes
2 answers

How does lighttpd/nginx determine filetype of a file? (which method?)

I want to configure my lighttpd to serve some static files, with compression capability. The files are plain text but they have .bin extension. I have these lines in my lighttpd configuration: compress.cache-dir =…
Reza Mohammadi
  • 217
  • 2
  • 6
0
votes
1 answer

epoll timeout configuration in lighttpd

Is there a configuration option to tune epoll timeout in lighttpd? I'm developing an embedded Linux (2.6) device, with lighttpd 1.4.30. And I'm observing the following issue: even when the system is idle and there are no web clients connected, the…
alexa
  • 3
  • 1
0
votes
2 answers

Lighttpd: htaccess protection does not work

i have tried to setup an htaccess protection of an file from my website. i have pasted the following code into the 05-auth.conf $HTTP["url"] =~ "^/www/hosts/domain" { auth.backend = "htpasswd" auth.backend.htpasswd.userfile =…
hazelnut
  • 25
  • 1
  • 8
0
votes
1 answer

PHP processes keep overwhelming my server, eating up the CPU and making it lock up :(

I have a Debian Squeeze Lighttpd server with PHP and MySQL, and also with XCache and Varnish set up. I am quite new to this, but have tried as hard as I can to resolve this problem with no success. Whether I use Lighttpd or Nginx or XCache or APC…
Wave
  • 11
  • 1
0
votes
1 answer

Lighttpd mod_rewrite to Apache mod_rewrite

I want to turn this Lighttpd mod_rewrite to apache rewrite code. $HTTP["host"] =~ "^(i\.ylar\.se|puush\.me)$" { server.document-root = "/var/www/servers/i.ylar.se/" url.rewrite-once = ( "^/api/up" => "/upload.php", …
Ylar
  • 3
  • 2
0
votes
1 answer

lighttpd server-status blank host and uri

Looking at the server-status on lighttpd, running behind a AWS load balancer, I'm seeing some long-lived (up to around 60 seconds) requests, in a "read" state with a blank host and blank URI. What does this mean, and is this anything to be concerned…
0
votes
1 answer

Lighttpd fails with 403 - Forbidden with SELinux enabled

I've setup a CentOS 6.3 box with lighttpd, php-fpm and I can server both static files and PHP files with SELinux enabled if I leave the lighttpd home directory set to the default (/var/www/lighttpd). However if I change the home directory to…
Brad
  • 619
  • 1
  • 10
  • 28
0
votes
0 answers

LightHTTPD - Software caused connection abort

I have a local LightTPD server running on my windows 7 computer. I have SSL set up and it works - but every time I request a document from the SSL part of the server I get the following on the logging window: 2013-03-17 19:11:05:…
starbeamrainbowlabs
  • 353
  • 1
  • 7
  • 16
0
votes
2 answers

Lighttpd vhost regex

I'm having a problem with my vhosts using regex. When I use the following code, I get a 404 not found: $HTTP["host"] =~ "(^|\.)example\.com$" { ... } However, when I explicitly set it to the following, I can get to my site: $HTTP["host"] ==…
Mike
  • 141
  • 3
0
votes
1 answer

lighthttpd proxy rules to allow for snap-shot testing and amazon monitoring

I use this rule for my proxy: $HTTP["host"] =~ ".*" { proxy.balance = "round-robin" proxy.server = ( "/" => ( ( "host" => "127.0.0.1", "port" => 9000 ) ) ) } Because I'm allowing any host to go to my proxy, I have the flexibility to…
jcalfee314
  • 269
  • 1
  • 6
  • 14
0
votes
2 answers

lighttpd: backend is overloaded

I have a high traffic site I'm trying to maintain, but from time to time at spikes get stuck with: (mod_fastcgi.c.2900) backend is overloaded; we'll disable it for 2 seconds and send the request to another backend instead: reconnects: 0 load:…
Aaron A
  • 239
  • 2
  • 14
0
votes
2 answers

Multiple SSL based IPs on lighttpd

I have lighttpd as web server and on it I have installed IP-based SSL certificates. I want to have a way to have multiple SSL certificates on each new IP that the server may get. For example, at the moment I have https://127.0.0.1 and it works, but…
Alin Andrei
  • 127
  • 9
0
votes
2 answers

How to combine Lighttpd simple_vhost with www to non-www redirects?

I've set a simple virtual hosting using Lighttpd simple_vhost module and want to do a permanent 301 redirect from www to non-www. Here are most significant parts of my configuration file: server.modules = ( "mod_simple_vhost", …
0
votes
1 answer

lighttpd: weird behavior on multiple rewrite rule matches

I have a 20-rewrite.conf for my php application looking like this: $HTTP["host"] =~ "www.mydomain.com" { url.rewrite-once += ( "^/(img|css)/.*" => "$0", ".*" => "/my_app.php" ) } I want to be able to put the webserver in…
netmikey
  • 233
  • 1
  • 2
  • 7
0
votes
1 answer

mod_access for lighttpd causes a 403 error for all POST requests

I have found on my debian server that running the lighttpd module mod_access is causing the server to response with a 403 to all POST requests. It's very odd as I have two servers, one is running as I'd expect and the other keeps returning these…
Samuel Parkinson
  • 202
  • 3
  • 10