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
1
vote
1 answer

Strange Centos 5 Lighttpd access log

I've investigated my Lighttpd access log and found some strange things listed below. I do not know if it's good or bad, but bearshare? I was never or these sites I use my Centos only for website hosting. Could you help me understand these…
Tom Smykowski
  • 1,125
  • 5
  • 19
  • 27
1
vote
1 answer

lowering lighttpd response time

Been using Pingdom to track the response time of some of my sites. A couple are using Apache, and a couple are using lighttpd. The response times for domains on lighttpd are hovering around 1300-1700ms. The only configurations I have loaded are…
Glen Solsberry
  • 1,536
  • 5
  • 28
  • 38
1
vote
1 answer

Lighttpd ldap auth issue, massive performance loss (lighttpd 1.4.35-1.el6.x86_64 + RHEL 6.6)

I installed lighttpd for the first time from epel repo. I changed user and group for the webserver and ran the lighttpd server. I can download a page with 200 small images in about a second. If I enable ldap authentication with configuring ldap and…
1
vote
1 answer

Lighttpd redirect non-www to www

I want to redirect all non-www to www on my domain. But when I use this code provided by some websites, and do a graceful restart of the lighttpd server, my website doesn't function anymore - at all: $HTTP[”host”] =~ “^example\.com” { …
AnonymousJ
  • 13
  • 4
1
vote
1 answer

bind9 + lighttpd: Accept all requests coming from certain name servers and reply with static page

So, I've this situation: A server (under CentOS) with a lot of domains with around 2 TB of data under them, and I'm migrating it all to another machine with faster I/O. The migration details / software are not important here. Due to some internal…
TCB13
  • 1,166
  • 1
  • 14
  • 34
1
vote
2 answers

Lighttpd error log increases too fast

I am using lighttpd v1.4.35 and I have developed a simple web page with some links to test. After some clicks I have noticed the error log is increasing too fast. In /etc/lighttpd/lighttpd.conf I have the server.errorlog path set as: server.errorlog…
aloplop85
  • 113
  • 1
  • 5
1
vote
2 answers

lighttpd + PHP-fcgi slow response

We have a problem regarding lighttpd as the webserver with php5 as backend via fast-cgi. Sometimes the server's response is taking more than 5 seconds (up to 20 seconds) when requesting a simple file that calls phpinfo();. The server log does not…
robert
  • 11
  • 2
1
vote
1 answer

Error 500 / 503

I get an Error 500 / 503. My theory was that php5-fpm was being killed and re-spawned every second due to messages like this in php5-fpm.log [27-Jan-2015 08:21:34] NOTICE: fpm is running, pid 30045 [27-Jan-2015 08:21:34] NOTICE: ready to handle…
acanessa
  • 63
  • 1
  • 6
1
vote
1 answer

Starting lighttpd from nagios renders lighttpd broken

I'm using Debian 7.8 (wheezy), and lighttpd 1.4.31 with nagios 3.4.1. when I start lighttpd normally (as root), everything works as expected: /etc/init.d/lighttpd start However, when nagios starts lighttpd, everything issues a 404 error, and…
Flimzy
  • 2,454
  • 18
  • 26
1
vote
1 answer

lighttpd: set up mod_auth for site on custom port

I am running lighttpd 1.4.19. I have mod_auth enabled. If I do something like: auth.require = ( "/" => ( "method" => "digest", "realm" => "Authorized users only", "require" => "user=someuser" ) …
Krystian Cybulski
  • 495
  • 3
  • 6
  • 13
1
vote
1 answer

Lighttpd and Discourse (Docker): configuring mod_proxy

I have trouble configuring Lighttpd to serve the various services hosted on my server. Lighttpd acts as a front, and I have several DNS records, each for a different subdomain, redirecting to the same machine. The goal is to dispatch those requests…
Silver Quettier
  • 513
  • 2
  • 6
  • 14
1
vote
2 answers

what is lighttpd equivalent of RewriteCond %{REQUEST_FILENAME} !-f?

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php This is Zend htaccess, I can't seem to find a lighttpd equivalent of this.. Thanks, D
Devrim
  • 1,187
  • 4
  • 16
  • 29
1
vote
0 answers

Lighttpd to include IP address in error.log

I have lighttpd/1.4.31 (ssl) on Debian 7.6 and I would for the standard error.log to include the IP address of the host which caused the error. Is it possible? The accesslog.format directive allows customisation for access logs, but I can't find a…
aland
  • 172
  • 1
  • 7
1
vote
2 answers

What's the best way to secure lighttpd per fcgi-php app?

I have a machine with lighttpd and evhost setup. All the evhost contain various php apps like wordpress, drupal etc. If one of the php apps gets compromised the attacker will have access to all the php apps in evhost root. Is it possible to close…
pielgrzym
  • 131
  • 3
1
vote
2 answers

lighttpd - redirect everything to https

I have tried to use the example from this wiki page - $HTTP["scheme"] == "http" { # capture vhost name with regex conditiona -> %0 in redirect pattern # must be the most inner block to the redirect rule $HTTP["host"] =~ ".*" { …
dima_mak
  • 125
  • 1
  • 7